DefaultConfigTest::testCallbackViolationsWithStringManipulation PHP Method

testCallbackViolationsWithStringManipulation() public method

Test whether sandbox disallows violating callbacks even with manipulated sandboxed strings
    public function testCallbackViolationsWithStringManipulation()
    {
        $this->expectException('PHPSandbox\\Error');
        $this->sandbox->execute(function () {
            $x = substr("var_dump2", 0, -1);
            array_filter(array("1"), $x);
        });
    }