Changeset 47403
- Timestamp:
- 03/02/2020 01:11:29 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/basic.php
r47122 r47403 16 16 $this_year = gmdate( 'Y' ); 17 17 $this->assertEquals( $this_year, trim( $matches[1] ), "license.txt's year needs to be updated to $this_year." ); 18 } 19 20 function test_security_md() { 21 // This test is designed to only run on trunk/master. 22 $this->skipOnAutomatedBranches(); 23 24 $security = file_get_contents( dirname( ABSPATH ) . '/SECURITY.md' ); 25 preg_match( '#\d.\d.x#', $security, $matches ); 26 $current_version = substr( $GLOBALS['wp_version'], 0, 3 ); 27 $latest_stable = sprintf( '%s.x', (float) $current_version - 0.1 ); 28 $this->assertEquals( $latest_stable, trim( $matches[0] ), "SECURITY.md's version needs to be updated to $latest_stable." ); 18 29 } 19 30
Note: See TracChangeset
for help on using the changeset viewer.