Skip to content

Commit

Permalink
Add new functions check to rayaop-loaded test
Browse files Browse the repository at this point in the history
Two new assertions were added to the 'rayaop-loaded' test to check if 'method_intercept_init' and 'enable_method_intercept' functions exist. This ensures that all necessary functions for 'rayaop' are loaded and available for use.
  • Loading branch information
koriym committed Jul 11, 2024
1 parent ba77fc6 commit c98ba7c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/000-rayaop-loaded.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,14 @@ RayAOP extension is loaded
<?php
var_dump(extension_loaded('rayaop'));
var_dump(function_exists('method_intercept'));
var_dump(function_exists('method_intercept_init'));
var_dump(function_exists('enable_method_intercept'));
var_dump(interface_exists('Ray\\Aop\\MethodInterceptorInterface'));

?>
--EXPECT--
bool(true)
bool(true)
bool(true)
bool(true)
bool(true)

0 comments on commit c98ba7c

Please sign in to comment.