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>
29 lines
500 B
PHP
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'
|
|
);
|
|
}
|
|
}
|