DefaultConfigTest::testDisallowsInclude PHP Метод

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

Test whether sandbox disallows include keyword
    public function testDisallowsInclude()
    {
        $this->expectException('PHPSandbox\\Error');
        $this->sandbox->execute(function () {
            include 'test.php';
        });
    }