DefaultConfigTest::testDisallowsGlobals PHP Метод

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

Test whether sandbox disallows globals
    public function testDisallowsGlobals()
    {
        $this->expectException('PHPSandbox\\Error');
        $this->sandbox->execute(function () {
            global $test;
            return $test;
        });
    }