phpmyadmin/tests/classes/EnvironmentTest.php
Maurício Meneghini Fauth ba72f543fd
Call PHPUnit static methods using static calls
Replaces $this->method() with self::method().

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2024-01-31 17:17:38 -03:00

27 lines
478 B
PHP

<?php
declare(strict_types=1);
namespace PhpMyAdmin\Tests;
use PHPUnit\Framework\Attributes\CoversNothing;
use function version_compare;
use const PHP_VERSION;
#[CoversNothing]
class EnvironmentTest extends AbstractTestCase
{
/**
* Tests PHP version
*/
public function testPhpVersion(): void
{
self::assertTrue(
version_compare('8.1.2', PHP_VERSION, '<='),
'phpMyAdmin requires PHP 8.1.2 or above',
);
}
}