diff --git a/tests/TestCase.php b/tests/TestCase.php index a996ea6..ac2706c 100644 --- a/tests/TestCase.php +++ b/tests/TestCase.php @@ -26,7 +26,7 @@ public function expectExceptionMessageMatches(string $regularExpression): void */ public static function assertDirectoryDoesNotExist(string $directory, string $message = ''): void { - if (method_exists(PHPUnitTestCase::class, 'expectExceptionMessageMatches')) { + if (method_exists(PHPUnitTestCase::class, 'assertDirectoryDoesNotExist')) { parent::assertDirectoryDoesNotExist($directory, $message); } else { static::assertFalse(is_dir($directory), $message);