Fix License test

Broken in r36855

Fixes #35278



git-svn-id: https://develop.svn.wordpress.org/trunk@36856 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Aaron Jorbin 2016-03-05 20:21:23 +00:00
parent cdd3d5f318
commit 57d8c6668a
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@ class Tests_Basic extends WP_UnitTestCase {
function test_license() {
$license = file_get_contents( ABSPATH . 'license.txt' );
preg_match( '#Copyright (\d+) by the contributors#', $license, $matches );
preg_match( '#Copyright 2011-(\d+) by the contributors#', $license, $matches );
$this_year = date( 'Y' );
$this->assertEquals( $this_year, trim( $matches[1] ), "license.txt's year needs to be updated to $this_year." );
}