public function testDisallowsNonwhitelistedFunction() { $this->expectException('PHPSandbox\\Error'); $this->sandbox->execute(function () { return mt_rand(); }); }