Skip to content

Commit 0062ce6

Browse files
committed
Merge branch 'QA_5_2'
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2 parents f20221a + 21c36a0 commit 0062ce6

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

‎test/classes/RoutingTest.php‎

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
use PhpMyAdmin\Routing;
1010

1111
use function copy;
12+
use function method_exists;
1213
use function unlink;
1314

1415
use const CACHE_DIR;
@@ -48,7 +49,14 @@ public function testGetDispatcher(): void
4849

4950
// Create new cache file.
5051
$this->assertTrue(unlink($cacheFilename));
51-
$this->assertFileNotExists($cacheFilename);
52+
53+
if (method_exists($this, 'assertFileDoesNotExist')) {
54+
$this->assertFileDoesNotExist($cacheFilename);
55+
} else {
56+
/** @psalm-suppress DeprecatedMethod */
57+
$this->assertFileNotExists($cacheFilename);
58+
}
59+
5260
$dispatcher = Routing::getDispatcher();
5361
$this->assertInstanceOf(Dispatcher::class, $dispatcher);
5462
$this->assertSame($expected, $dispatcher->dispatch('GET', '/'));

0 commit comments

Comments
 (0)