Skip to content

Commit

Permalink
Update IntegrationTestCase.php
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianHenryIE committed May 27, 2024
1 parent 4688118 commit 39dc5ab
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/Integration/Util/IntegrationTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,14 +104,14 @@ protected function deleteDir($dir)
* @see https://www.php.net/manual/en/function.is-link.php#113263
* @see https://stackoverflow.com/a/18262809/336146
*/
rmdir($file);
rmdir($file->getPath());
} else {
unlink($file);
unlink($file->getPath());
}
} elseif ($file->isDir()) {
rmdir($file->getRealPath());
} elseif (is_readable($file->getRealPath())) {
unlink($file->getRealPath());
rmdir($file->getPath());
} elseif (is_readable($file->getPath())) {
unlink($file->getPath());
}
}
rmdir($dir);
Expand Down

0 comments on commit 39dc5ab

Please sign in to comment.