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