3 namespace Drupal\Tests\simpletest\Unit;
5 use Drupal\Tests\UnitTestCase;
8 * This test crashes PHP.
10 * To avoid accidentally running, it is not in a normal PSR-4 directory, the
11 * file name does not adhere to PSR-4 and an environment variable also needs to
12 * be set for the crash to happen.
14 * @see \Drupal\Tests\simpletest\Unit\SimpletestPhpunitRunCommandTest::testSimpletestPhpUnitRunCommand()
16 class SimpletestPhpunitRunCommandTestWillDie extends UnitTestCase {
19 * Performs the status specified by SimpletestPhpunitRunCommandTestWillDie.
21 public function testWillDie() {
22 $status = (int) getenv('SimpletestPhpunitRunCommandTestWillDie');
24 $this->assertTrue(TRUE, 'Assertion to ensure test pass');