You are here

public function SimpletestPhpunitRunCommandTestWillDie::testWillDie in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/simpletest/tests/fixtures/simpletest_phpunit_run_command_test.php \Drupal\Tests\simpletest\Unit\SimpletestPhpunitRunCommandTestWillDie::testWillDie()

File

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

Class

SimpletestPhpunitRunCommandTestWillDie
This test crashes PHP.

Namespace

Drupal\Tests\simpletest\Unit

Code

public function testWillDie() {
  if (getenv('SimpletestPhpunitRunCommandTestWillDie') === 'fail') {
    exit(2);
  }
}