DefaultConfigTest::testDisallowsClasses PHP Method

testDisallowsClasses() public method

Test whether sandbox disallows classes
    public function testDisallowsClasses()
    {
        $this->expectException('PHPSandbox\\Error');
        $this->sandbox->execute('class Foo {}');
    }