diff --git a/tests/008-rayaop-thread-safety.phpt b/tests/008-rayaop-thread-safety.phpt index c537c79..1fad979 100644 --- a/tests/008-rayaop-thread-safety.phpt +++ b/tests/008-rayaop-thread-safety.phpt @@ -31,12 +31,12 @@ class TestClass { method_intercept_init(); for ($i = 0; $i < 3; $i++) { - $result = method_intercept( + $res = method_intercept( TestClass::class, 'method', new SafetyTestInterceptor($i) ); - echo "" . PHP_EOL; + echo "" . PHP_EOL; } $test = new TestClass(); @@ -45,6 +45,7 @@ $paramsArray = [null, 'test', 'error', 'another test']; foreach ($paramsArray as $i => $param) { $paramString = isset($param) ? $param : ''; echo "" . PHP_EOL; + try { $result = $test->method($param); echo "" . PHP_EOL; @@ -54,7 +55,6 @@ foreach ($paramsArray as $i => $param) { } echo "" . PHP_EOL; -?> --EXPECT--