Skip to content

Commit b862131

Browse files
committed
Fix borked test GH-225.php
1 parent 28777f1 commit b862131

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

tests/GH-225.phpt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,13 @@ require_once __DIR__ . "/../render.php";
2525
--CLEAN--
2626
<?php
2727
\unlink(__DIR__ . "/../phd.config.php");
28+
$iterator = new \RecursiveIteratorIterator(
29+
new \RecursiveDirectoryIterator(__DIR__ . "/../output/", \FilesystemIterator::SKIP_DOTS),
30+
\RecursiveIteratorIterator::CHILD_FIRST
31+
);
32+
foreach ($iterator as $file) {
33+
$file->isDir() ? \rmdir($file->getPathname()) : \unlink($file->getPathname());
34+
}
2835
\rmdir(__DIR__ . "/../output/");
2936
?>
3037
--EXPECTF--

0 commit comments

Comments
 (0)