diff --git a/tests/phpunit/tests/basic.php b/tests/phpunit/tests/basic.php index 4110d59b80..d5aba28b9d 100644 --- a/tests/phpunit/tests/basic.php +++ b/tests/phpunit/tests/basic.php @@ -26,7 +26,7 @@ class Tests_Basic extends WP_UnitTestCase { $readme = file_get_contents( ABSPATH . 'readme.html' ); preg_match( '#
Version (.*)#', $readme, $matches ); list( $version ) = explode( '-', $GLOBALS['wp_version'] ); - $this->assertEquals( $version, $matches[1], "readme.html's version needs to be updated to $version." ); + $this->assertEquals( $version, trim( $matches[1] ), "readme.html's version needs to be updated to $version." ); } // two tests for a lame bug in PHPUnit that broke the $GLOBALS reference