From 57d8c6668a4971a5c4c265f7dd01bc1fb6020ccc Mon Sep 17 00:00:00 2001 From: Aaron Jorbin Date: Sat, 5 Mar 2016 20:21:23 +0000 Subject: [PATCH] Fix License test Broken in r36855 Fixes #35278 git-svn-id: https://develop.svn.wordpress.org/trunk@36856 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/tests/basic.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/phpunit/tests/basic.php b/tests/phpunit/tests/basic.php index 87ca86649a..f68fbeb962 100644 --- a/tests/phpunit/tests/basic.php +++ b/tests/phpunit/tests/basic.php @@ -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." ); }