public function testDisallowsConstants() { $this->expectException('PHPSandbox\\Error'); $this->sandbox->execute(function () { define('TEST', 'Hello World!'); return TEST; }); }