We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a37f845 commit a302f83Copy full SHA for a302f83
tests/system/I18n/TimeTest.php
@@ -889,6 +889,14 @@ public function testEqualWithStringAndNoTimezone(): void
889
$this->assertTrue($time1->equals('January 10, 2017 21:50:00'));
890
}
891
892
+ public function testEqualWithDifferentMicroseconds(): void
893
+ {
894
+ $time1 = new Time('2024-01-01 12:00:00.654321');
895
+ $time2 = new Time('2024-01-01 12:00:00');
896
+
897
+ $this->assertFalse($time1->equals($time2));
898
+ }
899
900
public function testSameSuccess(): void
901
{
902
$time1 = Time::parse('January 10, 2017 21:50:00', 'America/Chicago');
0 commit comments