phpmyadmin/tests/unit/EnvironmentTest.php
Maurício Meneghini Fauth 606f66b5df
Rename tests/classes to tests/unit
This directory is for unit tests only, so let's rename it to unit to be
more clear.

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2024-02-23 13:29:07 -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',
);
}
}