DefaultConfigTest::testCallbackViolations PHP Метод

testCallbackViolations() публичный Метод

Test whether sandbox disallows violating callbacks
    public function testCallbackViolations()
    {
        $this->expectException('PHPSandbox\\Error');
        $this->sandbox->execute(function () {
            array_filter(array("1"), "var_dump");
        });
    }