diff --git a/tests/005-rayaop-max-recursion.phpt b/tests/005-rayaop-max-recursion.phpt deleted file mode 100644 index 3939ed0..0000000 --- a/tests/005-rayaop-max-recursion.phpt +++ /dev/null @@ -1,43 +0,0 @@ ---TEST-- -RayAOP maximum recursion and error handling ---SKIPIF-- - ---FILE-- -$method(...$params); - } -} - -class TestClass { - public function recursiveMethod() { - return $this->recursiveMethod(); - } -} - -method_intercept(TestClass::class, 'recursiveMethod', new RecursiveInterceptor()); -$test = new TestClass(); -try { - $test->recursiveMethod(); -} catch (Throwable $e) { - echo "Caught expected error:" . $e::class . "\n"; -} - -// Test handling of NULL parameters -// Verifies proper error handling for invalid input -try { - @method_intercept(null, null, null); -} catch (Throwable $e) { - echo "Caught null parameter error\n"; -} -?> ---EXPECT-- -Caught expected error:Error -Caught null parameter error