Skip to content

Commit

Permalink
Enable method intercept in thread safety test
Browse files Browse the repository at this point in the history
Add a call to `method_intercept_enable(true);` in the thread-safety test script. This ensures that the method interception is activated during the test executions, allowing accurate evaluations of thread safety conditions.
  • Loading branch information
koriym committed Dec 8, 2024
1 parent ef8af08 commit 865d6e6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/008-rayaop-thread-safety.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ for ($i = 0; $i < 3; $i++) {
$test = new TestClass();
$paramsArray = [null, 'test', 'error', 'another test'];

method_intercept_enable(true);

foreach ($paramsArray as $i => $param) {
$paramString = isset($param) ? $param : '';
echo "<Execution #{$i} with param: {$paramString}>" . PHP_EOL;
Expand Down

0 comments on commit 865d6e6

Please sign in to comment.