DefaultConfigTest::testDisallowsExit PHP Метод

testDisallowsExit() публичный Метод

Test whether sandbox disallows exit keyword
public testDisallowsExit ( )
    public function testDisallowsExit()
    {
        $this->expectException('PHPSandbox\\Error');
        $this->sandbox->execute(function () {
            exit('Hello World!');
        });
    }