From 39dc5ab881beb4fad3ab0d2370a21fc834099b81 Mon Sep 17 00:00:00 2001 From: Brian Henry Date: Sun, 26 May 2024 17:28:53 -0700 Subject: [PATCH] Update IntegrationTestCase.php --- tests/Integration/Util/IntegrationTestCase.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/Integration/Util/IntegrationTestCase.php b/tests/Integration/Util/IntegrationTestCase.php index 14a07c08..0efa8996 100644 --- a/tests/Integration/Util/IntegrationTestCase.php +++ b/tests/Integration/Util/IntegrationTestCase.php @@ -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);