Changeset 53347
- Timestamp:
- 05/03/2022 06:55:45 PM (4 years ago)
- File:
-
- 1 edited
-
trunk/tests/phpunit/tests/basic.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/basic.php
r53346 r53347 25 25 preg_match( '#\d.\d.x#', $security, $matches ); 26 26 $current_version = substr( $GLOBALS['wp_version'], 0, 3 ); 27 $latest_stable = sprintf( '%s.x', (float) $current_version - 0.1 );28 //$this->assertSame( $latest_stable, trim( $matches[0] ), "SECURITY.md's version needs to be updated to $latest_stable." );27 $latest_stable = number_format( (float) $current_version - 0.1, 1 ) . '.x'; 28 $this->assertSame( $latest_stable, trim( $matches[0] ), "SECURITY.md's version needs to be updated to $latest_stable." ); 29 29 } 30 30
Note: See TracChangeset
for help on using the changeset viewer.