Changeset 39583 for trunk/tests/phpunit/tests/external-http/basic.php
- Timestamp:
- 12/12/2016 08:00:24 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/external-http/basic.php
r35172 r39583 7 7 function test_readme() { 8 8 $readme = file_get_contents( ABSPATH . 'readme.html' ); 9 preg_match( '#<br /> Version (.*)#', $readme, $matches );10 list( $version ) = explode( '-', $GLOBALS['wp_version'] );11 $this->assertEquals( $version, trim( $matches[1] ), "readme.html's version needs to be updated to $version." );12 9 13 10 preg_match( '#Recommendations.*PHP</a> version <strong>([0-9.]*)#s', $readme, $matches );
Note: See TracChangeset
for help on using the changeset viewer.