Make WordPress Core


Ignore:
Timestamp:
04/09/2014 11:49:05 PM (10 years ago)
Author:
nacin
Message:

Update license copyright year to 2014.

fixes #27728.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/basic.php

    r26940 r28064  
    2828        list( $version ) = explode( '-', $GLOBALS['wp_version'] );
    2929        $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." );
    3037    }
    3138
Note: See TracChangeset for help on using the changeset viewer.