public function testDisallowsCasting() { $this->expectException('PHPSandbox\\Error'); $this->sandbox->execute(function () { return (bool) '1'; }); }