DefaultConfigTest::testDisallowsIncludeOnce PHP Method

testDisallowsIncludeOnce() public method

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