From 65156c6fc56f40fd787e0dc4a8680ad846cd22bb Mon Sep 17 00:00:00 2001 From: Gary Pendergast Date: Mon, 7 Sep 2015 07:27:34 +0000 Subject: [PATCH] Tests: Add an extra warning message when checking the recommended PHP version. See #33758. git-svn-id: https://develop.svn.wordpress.org/trunk@33944 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/tests/basic.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/phpunit/tests/basic.php b/tests/phpunit/tests/basic.php index 691b6cf91e..c0703ee0ee 100644 --- a/tests/phpunit/tests/basic.php +++ b/tests/phpunit/tests/basic.php @@ -37,7 +37,7 @@ class Tests_Basic extends WP_UnitTestCase { preg_match_all( '#\s*\s*]*>\s*([0-9.]*)#s', $php, $phpmatches ); - $this->assertContains( $matches[1], $phpmatches[1] ); + $this->assertContains( $matches[1], $phpmatches[1], "readme.html's Recommended PHP version is too old. Remember to update the WordPress.org Requirements page, too." ); } function test_license() {