PHPUnit test environment initialising problem

PHPUnit test environment initialising problem

by Tatyana Kalmah -
Number of replies: 2

I ran "php admin\tool\phpunit\cli\init.php" in the console. Then I get "version 5.5.4 is required and you are running 7.1.11PHP version 7.1 is not supported"

What can I do with it? Thanx.

Average of ratings: -
In reply to Tatyana Kalmah

Re: PHPUnit test environment initialising problem

by Davo Smith -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

Well the error message couldn't really be much clearer.

For the version of Moodle you are using, at least PHP version 5.5.4 is required, but PHP 7.1 is not supported.

You have 2 options:

  • Install an earlier version of PHP (you don't state which version of Moodle you are using, so have a look at the release notes ( https://docs.moodle.org/dev/Releases ) for the relevant version to find out which PHP versions are supported)
  • Upgrade to a later version of Moodle (Moodle 3.2 and above support PHP 7.1)