Translated using Weblate (Lithuanian)
[phpmyadmin.git] / test / classes / ProfilingTest.php
blobeb73b8711cddc9cb88075820296f43f2923b798e
1 <?php
3 declare(strict_types=1);
5 namespace PhpMyAdmin\Tests;
7 use PhpMyAdmin\Profiling;
8 use PhpMyAdmin\Utils\SessionCache;
10 /**
11 * @covers \PhpMyAdmin\Profiling
13 class ProfilingTest extends AbstractTestCase
15 public function testIsSupported(): void
17 global $dbi, $server;
19 $server = 1;
21 SessionCache::set('profiling_supported', true);
22 $condition = Profiling::isSupported($dbi);
23 $this->assertTrue($condition);
25 SessionCache::set('profiling_supported', false);
26 $condition = Profiling::isSupported($dbi);
27 $this->assertFalse($condition);