public function testDisallowsExit() { $this->expectException('PHPSandbox\\Error'); $this->sandbox->execute(function () { exit('Hello World!'); }); }