[DOC-CVS] [phd] master: Fix borked test GH-225.php
[email protected] (Jordi Kroon)
| Newsgroups | php.doc.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: Jordi Kroon (jordikroon)
Date: 2026-08-18T20:42:24+02:00
Commit: https://github.com/php/phd/commit/b862131644327389bd60dacd55fb2936f24f9621
Raw diff: https://github.com/php/phd/commit/b862131644327389bd60dacd55fb2936f24f9621.diff
Fix borked test GH-225.php
Changed paths:
M tests/GH-225.phpt
Diff:
diff --git a/tests/GH-225.phpt b/tests/GH-225.phpt
index bf418192..086426e1 100644
--- a/tests/GH-225.phpt
+++ b/tests/GH-225.phpt
@@ -25,6 +25,13 @@ require_once __DIR__ . "/../render.php";
--CLEAN--
<?php
\unlink(__DIR__ . "/../phd.config.php");
+$iterator = new \RecursiveIteratorIterator(
+ new \RecursiveDirectoryIterator(__DIR__ . "/../output/", \FilesystemIterator::SKIP_DOTS),
+ \RecursiveIteratorIterator::CHILD_FIRST
+);
+foreach ($iterator as $file) {
+ $file->isDir() ? \rmdir($file->getPathname()) : \unlink($file->getPathname());
+}
\rmdir(__DIR__ . "/../output/");
?>
--EXPECTF--