public function testDisallowsRequireOnce() { $this->expectException('PHPSandbox\\Error'); $this->sandbox->execute(function () { require_once 'test.php'; }); }