diff --git a/tests/phpunit/tests/basic.php b/tests/phpunit/tests/basic.php index 51b0c78519..05fdbeaf29 100644 --- a/tests/phpunit/tests/basic.php +++ b/tests/phpunit/tests/basic.php @@ -24,8 +24,8 @@ class Tests_Basic extends WP_UnitTestCase { $security = file_get_contents( dirname( ABSPATH ) . '/SECURITY.md' ); preg_match( '#\d.\d.x#', $security, $matches ); $current_version = substr( $GLOBALS['wp_version'], 0, 3 ); - $latest_stable = sprintf( '%s.x', (float) $current_version - 0.1 ); - // $this->assertSame( $latest_stable, trim( $matches[0] ), "SECURITY.md's version needs to be updated to $latest_stable." ); + $latest_stable = number_format( (float) $current_version - 0.1, 1 ) . '.x'; + $this->assertSame( $latest_stable, trim( $matches[0] ), "SECURITY.md's version needs to be updated to $latest_stable." ); } public function test_package_json() {