There was an error while loading. Please reload this page.
2 parents f20221a + 21c36a0 commit 0062ce6Copy full SHA for 0062ce6
1 file changed
test/classes/RoutingTest.php
@@ -9,6 +9,7 @@
9
use PhpMyAdmin\Routing;
10
11
use function copy;
12
+use function method_exists;
13
use function unlink;
14
15
use const CACHE_DIR;
@@ -48,7 +49,14 @@ public function testGetDispatcher(): void
48
49
50
// Create new cache file.
51
$this->assertTrue(unlink($cacheFilename));
- $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
60
$dispatcher = Routing::getDispatcher();
61
$this->assertInstanceOf(Dispatcher::class, $dispatcher);
62
$this->assertSame($expected, $dispatcher->dispatch('GET', '/'));
0 commit comments