Skip to content

Commit b31a6bb

Browse files
authoredFeb 24, 2025··
Fix test
1 parent 5e7ac63 commit b31a6bb

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed
 

‎tests/ResultTest.php

+4-1
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,10 @@ public function testGetTimestamp(): void
149149
$this->result->setTimestamp(1633082116654);
150150

151151
self::assertInstanceOf(DateTimeInterface::class, $this->result->getTimestamp());
152-
self::assertSame('2021-10-01T11:55:16.000000+02:00', $this->result->getTimestamp()->format('Y-m-d\TH:i:s.uP'));
152+
153+
$timestamp = DateTime::createFromFormat('Y-m-d\TH:i:s', '2021-10-01T09:55:16');
154+
155+
self::assertSame($timestamp->format('Y-m-d\TH:i:s.uP'), $this->result->getTimestamp()->format('Y-m-d\TH:i:s.uP'));
153156
}
154157

155158
public function testIsExecuted(): void

0 commit comments

Comments
 (0)
Please sign in to comment.