Changeset 51565 for trunk/tests/phpunit/tests/date/query.php
- Timestamp:
- 08/06/2021 09:52:06 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/date/query.php
r51462 r51565 714 714 // $compare value is floating point - use regex to account for 715 715 // varying precision on different PHP installations. 716 $this->assert RegExp( "/DATE_FORMAT\( post_date, '%H\.%i' \) = 5\.150*/", $wpdb->remove_placeholder_escape( $found ) );716 $this->assertMatchesRegularExpression( "/DATE_FORMAT\( post_date, '%H\.%i' \) = 5\.150*/", $wpdb->remove_placeholder_escape( $found ) ); 717 717 } 718 718 … … 725 725 // $compare value is floating point - use regex to account for 726 726 // varying precision on different PHP installations. 727 $this->assert RegExp( "/DATE_FORMAT\( post_date, '%H\.%i%s' \) = 5\.15350*/", $wpdb->remove_placeholder_escape( $found ) );727 $this->assertMatchesRegularExpression( "/DATE_FORMAT\( post_date, '%H\.%i%s' \) = 5\.15350*/", $wpdb->remove_placeholder_escape( $found ) ); 728 728 } 729 729 … … 736 736 // $compare value is floating point - use regex to account for 737 737 // varying precision on different PHP installations. 738 $this->assert RegExp( "/DATE_FORMAT\( post_date, '0\.%i%s' \) = 0\.15350*/", $wpdb->remove_placeholder_escape( $found ) );738 $this->assertMatchesRegularExpression( "/DATE_FORMAT\( post_date, '0\.%i%s' \) = 0\.15350*/", $wpdb->remove_placeholder_escape( $found ) ); 739 739 } 740 740
Note: See TracChangeset
for help on using the changeset viewer.