Changeset 48952 for trunk/tests/phpunit/tests/formatting/date.php
- Timestamp:
- 09/07/2020 03:12:17 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/formatting/date.php
r48937 r48952 86 86 $local = 'now'; 87 87 $gmt = gmdate( 'Y-m-d H:i:s' ); 88 $this->assertEquals ( strtotime( $gmt ), strtotime( get_gmt_from_date( $local ) ), 'The dates should be equal', 2);88 $this->assertEqualsWithDelta( strtotime( $gmt ), strtotime( get_gmt_from_date( $local ) ), 2, 'The dates should be equal' ); 89 89 } 90 90 … … 95 95 $local = 'now'; 96 96 $gmt = gmdate( 'Y-m-d H:i:s' ); 97 $this->assertEquals ( strtotime( $gmt ), strtotime( get_gmt_from_date( $local ) ), 'The dates should be equal', 2);97 $this->assertEqualsWithDelta( strtotime( $gmt ), strtotime( get_gmt_from_date( $local ) ), 2, 'The dates should be equal' ); 98 98 } 99 99
Note: See TracChangeset
for help on using the changeset viewer.