public function testDisallowsGlobals() { $this->expectException('PHPSandbox\\Error'); $this->sandbox->execute(function () { global $test; return $test; }); }