diff --git a/tests/001-rayaop-basic.phpt b/tests/001-rayaop-basic.phpt index 48848fa..9985ce4 100644 --- a/tests/001-rayaop-basic.phpt +++ b/tests/001-rayaop-basic.phpt @@ -18,6 +18,7 @@ class TestInterceptor implements Ray\Aop\MethodInterceptorInterface { // Register the interceptor $result = method_intercept(TestClass::class, 'testMethod', new TestInterceptor()); +enable_method_intercept(true); var_dump($result); // Call the intercepted method diff --git a/tests/003-rayaop-multiple-interceptors.phpt b/tests/003-rayaop-multiple-interceptors.phpt index 339a480..5cf3539 100644 --- a/tests/003-rayaop-multiple-interceptors.phpt +++ b/tests/003-rayaop-multiple-interceptors.phpt @@ -27,6 +27,7 @@ class Interceptor2 implements Ray\Aop\MethodInterceptorInterface { // Register multiple interceptors method_intercept(TestClass::class, 'testMethod', new Interceptor1()); method_intercept(TestClass::class, 'testMethod', new Interceptor2()); +enable_method_intercept(true); $test = new TestClass(); $result = $test->testMethod("Hello");