From eef7258ca6b28e7a6d260030d162293887fdc5e0 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Wed, 9 Apr 2014 23:49:05 +0000 Subject: [PATCH] Update license copyright year to 2014. fixes #27728. git-svn-id: https://develop.svn.wordpress.org/trunk@28064 602fd350-edb4-49c9-b593-d223f7449a82 --- src/license.txt | 2 +- tests/phpunit/tests/basic.php | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/license.txt b/src/license.txt index e7392a053a..93c388148a 100644 --- a/src/license.txt +++ b/src/license.txt @@ -1,6 +1,6 @@ WordPress - Web publishing software -Copyright 2013 by the contributors +Copyright 2014 by the contributors This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff --git a/tests/phpunit/tests/basic.php b/tests/phpunit/tests/basic.php index e66f75d0a9..61ba04220e 100644 --- a/tests/phpunit/tests/basic.php +++ b/tests/phpunit/tests/basic.php @@ -29,6 +29,13 @@ class Tests_Basic extends WP_UnitTestCase { $this->assertEquals( $version, trim( $matches[1] ), "readme.html's version needs to be updated to $version." ); } + function test_license() { + $license = file_get_contents( ABSPATH . 'license.txt' ); + preg_match( '#Copyright (\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." ); + } + function test_package_json() { $package_json = file_get_contents( dirname( ABSPATH ) . '/package.json' ); $package_json = json_decode( $package_json, true );