Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMaurício Meneghini Fauth <mauricio@fauth.dev>2022-07-23 20:26:00 +0300
committerMaurício Meneghini Fauth <mauricio@fauth.dev>2022-07-23 20:26:00 +0300
commit0062ce6b01696422d885f5826cbbc368c6640cc4 (patch)
tree8bf4f4c0b970d83569a7304c081b85d4f950ff09 /test
parentf20221a081936025f788dc374ac410035f9d6b29 (diff)
parent21c36a0c0619d426e6134e8cbdd37b2689b8c748 (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.php10
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', '/'));