function SimpletestPhpunitRunCommandTestWillDie::testWillDie

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);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.