We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 41c7363 commit c777d61Copy full SHA for c777d61
1 file changed
tests/run-test/redirected_parallel.phpt
@@ -90,14 +90,18 @@ if ($parallelExitCode !== 0) {
90
var_dump($parallelExitCode);
91
var_dump(str_contains($parallelOutput, 'TEST 3/3'));
92
var_dump(str_contains($parallelOutput, 'TEST 3/2'));
93
-
94
-foreach (glob($targets . '/*') as $file) {
95
- unlink($file);
+?>
+--CLEAN--
+<?php
96
+foreach (glob(__DIR__ . '/redirected_parallel_*') ?: [] as $root) {
97
+ foreach (glob($root . '/targets/*') ?: [] as $file) {
98
+ unlink($file);
99
+ }
100
+ @rmdir($root . '/targets');
101
+ @unlink($root . '/redirect.phpt');
102
+ @unlink($root . '/companion.phpt');
103
+ @rmdir($root);
104
}
-rmdir($targets);
-unlink($root . '/redirect.phpt');
-unlink($root . '/companion.phpt');
-rmdir($root);
105
?>
106
--EXPECT--
107
int(0)
0 commit comments