Skip to content

Commit

Permalink
Update 006.phpt- fix run test on windows and linux
Browse files Browse the repository at this point in the history
  • Loading branch information
wantedxnn authored Sep 20, 2023
1 parent 2b156fe commit 593493f
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions ext/tests/006.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,6 @@
Check if hooks receives arguments and return value
--EXTENSIONS--
opentelemetry
--SKIPIF--
<?php
if(PATH_SEPARATOR == ';'){
echo 'skip';
}
?>
--FILE--
<?php
\OpenTelemetry\Instrumentation\hook(null, 'helloWorld', fn() => var_dump(func_get_args()), fn() => var_dump(func_get_args()));
Expand All @@ -32,7 +26,7 @@ array(6) {
[3]=>
string(10) "helloWorld"
[4]=>
string(%d) "%s/tests/006.php"
string(%d) "%s%etests%e006.php"
[5]=>
int(4)
}
Expand All @@ -53,7 +47,7 @@ array(8) {
[5]=>
string(10) "helloWorld"
[6]=>
string(%d) "%s/tests/006.php"
string(%d) "%s%etests%e006.php"
[7]=>
int(4)
}

0 comments on commit 593493f

Please sign in to comment.