Skip to content

Commit

Permalink
Test that ms are actually the same after deserialization
Browse files Browse the repository at this point in the history
  • Loading branch information
jlevers committed Jul 9, 2024
1 parent 286be85 commit 5d1e23b
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ class GetMyFeesEstimateResponseTest extends TestCase
public function testDeserializeDateTime()
{
$now = new DateTime();
$ms = $now->format('v');
$result = GetMyFeesEstimateResponse::deserialize([
'payload' => [
'FeesEstimateResult' => [
Expand All @@ -24,5 +25,6 @@ public function testDeserializeDateTime()
]);
$this->assertNotNull($result);
$this->assertInstanceOf(DateTimeInterface::class, $result->payload->feesEstimateResult->feesEstimate->timeOfFeesEstimation);
$this->assertEquals($ms, $result->payload->feesEstimateResult->feesEstimate->timeOfFeesEstimation->format('v'));
}
}

0 comments on commit 5d1e23b

Please sign in to comment.