public function testCallbackViolationsWithStringManipulation() { $this->expectException('PHPSandbox\\Error'); $this->sandbox->execute(function () { $x = substr("var_dump2", 0, -1); array_filter(array("1"), $x); }); }