diff --git a/tests/phpunit/tests/external-http/basic.php b/tests/phpunit/tests/external-http/basic.php
index 70439caf4c..f8ec84fdd3 100644
--- a/tests/phpunit/tests/external-http/basic.php
+++ b/tests/phpunit/tests/external-http/basic.php
@@ -7,7 +7,7 @@ class Tests_External_HTTP_Basic extends WP_UnitTestCase {
function test_readme() {
$readme = file_get_contents( ABSPATH . 'readme.html' );
preg_match( '#
Version (.*)#', $readme, $matches );
- list( $version ) = explode( '-', $GLOBALS['wp_version'] );
+ $version = (float) $GLOBALS['wp_version'];
$this->assertEquals( $version, trim( $matches[1] ), "readme.html's version needs to be updated to $version." );
preg_match( '#Recommendations.*PHP version ([0-9.]*)#s', $readme, $matches );