Changeset 53433 for trunk/tests/phpunit/tests/external-http/basic.php
- Timestamp:
- 05/23/2022 02:07:47 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/external-http/basic.php
r53431 r53433 53 53 * TODO: Reduce this back to 5 years once MySQL 8.0 compatibility is achieved. 54 54 */ 55 $mysql_eol = strtotime( $mysql_matches[1] . ' +8 years' ); 55 $mysql_eol = gmdate( 'Y-m-d', strtotime( $mysql_matches[1] . ' +8 years' ) ); 56 $current_date = gmdate( 'Y-m-d' ); 56 57 57 $this->assertLessThan( $mysql_eol, time(), "readme.html's Recommended MySQL version is too old. Remember to update the WordPress.org Requirements page, too." );58 $this->assertLessThan( $mysql_eol, $current_date, "readme.html's Recommended MySQL version is too old. Remember to update the WordPress.org Requirements page, too." ); 58 59 } 59 60 … … 85 86 86 87 // Per https://mariadb.org/about/#maintenance-policy, MariaDB releases are supported for 5 years. 87 $mariadb_eol = strtotime( $mariadb_matches[1] . ' +5 years' ); 88 $mariadb_eol = gmdate( 'Y-m-d', strtotime( $mariadb_matches[1] . ' +5 years' ) ); 89 $current_date = gmdate( 'Y-m-d' ); 88 90 89 $this->assertLessThan( $mariadb_eol, time(), "readme.html's Recommended MariaDB version is too old. Remember to update the WordPress.org Requirements page, too." );91 $this->assertLessThan( $mariadb_eol, $current_date, "readme.html's Recommended MariaDB version is too old. Remember to update the WordPress.org Requirements page, too." ); 90 92 } 91 93
Note: See TracChangeset
for help on using the changeset viewer.