diff options
author | Maurício Meneghini Fauth <mauricio@fauth.dev> | 2022-07-23 20:26:00 +0300 |
---|---|---|
committer | Maurício Meneghini Fauth <mauricio@fauth.dev> | 2022-07-23 20:26:00 +0300 |
commit | 0062ce6b01696422d885f5826cbbc368c6640cc4 (patch) | |
tree | 8bf4f4c0b970d83569a7304c081b85d4f950ff09 /test | |
parent | f20221a081936025f788dc374ac410035f9d6b29 (diff) | |
parent | 21c36a0c0619d426e6134e8cbdd37b2689b8c748 (diff) |
Merge branch 'QA_5_2'
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
Diffstat (limited to 'test')
-rw-r--r-- | test/classes/RoutingTest.php | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/test/classes/RoutingTest.php b/test/classes/RoutingTest.php index a505754e7f..7bc7db5852 100644 --- a/test/classes/RoutingTest.php +++ b/test/classes/RoutingTest.php @@ -9,6 +9,7 @@ use PhpMyAdmin\Controllers\HomeController; use PhpMyAdmin\Routing; use function copy; +use function method_exists; use function unlink; use const CACHE_DIR; @@ -48,7 +49,14 @@ class RoutingTest extends AbstractTestCase // Create new cache file. $this->assertTrue(unlink($cacheFilename)); - $this->assertFileNotExists($cacheFilename); + + if (method_exists($this, 'assertFileDoesNotExist')) { + $this->assertFileDoesNotExist($cacheFilename); + } else { + /** @psalm-suppress DeprecatedMethod */ + $this->assertFileNotExists($cacheFilename); + } + $dispatcher = Routing::getDispatcher(); $this->assertInstanceOf(Dispatcher::class, $dispatcher); $this->assertSame($expected, $dispatcher->dispatch('GET', '/')); |