public function testDisallowsNonwhitelistedType() { $this->expectException('PHPSandbox\\Error'); $this->sandbox->execute(function () { return new \stdClass(); }); }