Changeset 28064 for trunk/tests/phpunit/tests/basic.php
- Timestamp:
- 04/09/2014 11:49:05 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/basic.php
r26940 r28064 28 28 list( $version ) = explode( '-', $GLOBALS['wp_version'] ); 29 29 $this->assertEquals( $version, trim( $matches[1] ), "readme.html's version needs to be updated to $version." ); 30 } 31 32 function test_license() { 33 $license = file_get_contents( ABSPATH . 'license.txt' ); 34 preg_match( '#Copyright (\d+) by the contributors#', $license, $matches ); 35 $this_year = date( 'Y' ); 36 $this->assertEquals( $this_year, trim( $matches[1] ), "license.txt's year needs to be updated to $this_year." ); 30 37 } 31 38
Note: See TracChangeset
for help on using the changeset viewer.