You are here

public function SimpletestPhpunitRunCommandTestWillDie::testWillDie in Drupal 8

Performs the status specified by SimpletestPhpunitRunCommandTestWillDie.

File

core/modules/simpletest/tests/fixtures/simpletest_phpunit_run_command_test.php, line 23

Class

SimpletestPhpunitRunCommandTestWillDie
This test crashes PHP.

Namespace

Drupal\Tests\simpletest\Unit

Code

public function testWillDie() {
  $status = (int) getenv('SimpletestPhpunitRunCommandTestWillDie');
  if ($status == 0) {
    $this
      ->assertTrue(TRUE, 'Assertion to ensure test pass');
    return;
  }
  exit($status);
}