Welcome to mirror list, hosted at ThFree Co, Russian Federation.

EnvironmentTest.php « classes « test - github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 7d06f8251faebb37d7e9318a466773092fd6d4e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?php
/**
 * tests for environment like OS, PHP, modules, ...
 */

declare(strict_types=1);

namespace PhpMyAdmin\Tests;

use function version_compare;

use const PHP_VERSION;

/**
 * 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'
        );
    }
}