This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Class DateTimeComparator | |
* | |
* Custom Comparator for PHPUnit to compare two DateTime objects | |
* The default object comparator will report some DateTime object pairs | |
* as not equal even if they are canonically equal because the object | |
* comparator looks a exact object field values. A DateTime object | |
* can have multiple timezone values that represent the same timezone | |
* however. This comparator compares the object's UTC timestamps |