diff -u b/core/tests/Drupal/FunctionalTests/Installer/InstallerTestBase.php b/core/tests/Drupal/FunctionalTests/Installer/InstallerTestBase.php --- b/core/tests/Drupal/FunctionalTests/Installer/InstallerTestBase.php +++ b/core/tests/Drupal/FunctionalTests/Installer/InstallerTestBase.php @@ -246,7 +246,7 @@ // By default, skip the "recommended PHP version" warning on older test // environments. This allows the installer to be tested consistently on // both recommended PHP versions and older (but still supported) versions. - if (version_compare(phpversion(), DRUPAL_RECOMMENDED_PHP) < 0) { + if (version_compare(phpversion(), '7.0') < 0) { $this->continueOnExpectedWarnings(['PHP']); } }