3 declare(strict_types
=1);
5 namespace PhpMyAdmin\Tests
;
7 use PhpMyAdmin\Profiling
;
8 use PhpMyAdmin\Utils\SessionCache
;
11 * @covers \PhpMyAdmin\Profiling
13 class ProfilingTest
extends AbstractTestCase
15 public function testIsSupported(): void
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);