Skip to content

Commit

Permalink
Update AssertTest fix lessThan test fail in a different time zone. (#264
Browse files Browse the repository at this point in the history
)
  • Loading branch information
kudashevs authored Apr 17, 2022
1 parent b65e17c commit 7de722e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/AssertTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -718,7 +718,7 @@ public function getStringConversions()
array('eq', array(new ArrayIterator(array()), new stdClass()), 'Expected a value equal to stdClass. Got: ArrayIterator'),
array('eq', array(1, self::getResource()), 'Expected a value equal to resource. Got: 1'),

array('lessThan', array(new \DateTime('2020-01-01 00:00:00'), new \DateTime('1999-01-01 00:00:00')), 'Expected a value less than DateTime: "1999-01-01T00:00:00+00:00". Got: DateTime: "2020-01-01T00:00:00+00:00"'),
array('lessThan', array(new \DateTime('2020-01-01 00:00:00+00:00'), new \DateTime('1999-01-01 00:00:00+00:00')), 'Expected a value less than DateTime: "1999-01-01T00:00:00+00:00". Got: DateTime: "2020-01-01T00:00:00+00:00"'),
);
}

Expand Down

0 comments on commit 7de722e

Please sign in to comment.