phpmyadmin/test/classes/EnvironmentTest.php
Maurício Meneghini Fauth 2b830ea256
Bump PHP minimum version to 7.2
PHP officially ended support for PHP 7.2 on 2020-11-30. So it is safe to
bump the minimum version to PHP 7.2 for phpMyAdmin 5.2, which is likely
to be released only in the second half of 2021.

Related to #15607

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2021-02-18 12:33:03 -03:00

29 lines
500 B
PHP

<?php
/**
* tests for environment like OS, PHP, modules, ...
*/
declare(strict_types=1);
namespace PhpMyAdmin\Tests;
use const PHP_VERSION;
use function version_compare;
/**
* Environment tests
*/
class EnvironmentTest extends AbstractTestCase
{
/**
* Tests PHP version
*/
public function testPhpVersion(): void
{
$this->assertTrue(
version_compare('7.2.5', PHP_VERSION, '<='),
'phpMyAdmin requires PHP 7.2.5 or above'
);
}
}