DefaultConfigTest::testDisallowsTraits PHP Method

testDisallowsTraits() public method

Test whether sandbox disallows traits
public testDisallowsTraits ( )
    public function testDisallowsTraits()
    {
        $this->expectException('PHPSandbox\\Error');
        $this->sandbox->execute('trait Foo {}');
    }