File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed
Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -936,6 +936,15 @@ public function testBefore(): void
936936 $ this ->assertFalse ($ time2 ->isBefore ($ time1 ));
937937 }
938938
939+ public function testBeforeSameTime (): void
940+ {
941+ $ time1 = new Time ('2024-01-01 12:00:00.000000 ' );
942+ $ time2 = new Time ('2024-01-01 12:00:00.000000 ' );
943+
944+ $ this ->assertFalse ($ time1 ->isBefore ($ time2 ));
945+ $ this ->assertFalse ($ time2 ->isBefore ($ time1 ));
946+ }
947+
939948 public function testBeforeWithMicroseconds (): void
940949 {
941950 $ time1 = new Time ('2024-01-01 12:00:00.000000 ' );
@@ -954,6 +963,15 @@ public function testAfter(): void
954963 $ this ->assertTrue ($ time2 ->isAfter ($ time1 ));
955964 }
956965
966+ public function testAfterSameTime (): void
967+ {
968+ $ time1 = new Time ('2024-01-01 12:00:00.000000 ' );
969+ $ time2 = new Time ('2024-01-01 12:00:00.000000 ' );
970+
971+ $ this ->assertFalse ($ time1 ->isAfter ($ time2 ));
972+ $ this ->assertFalse ($ time2 ->isAfter ($ time1 ));
973+ }
974+
957975 public function testAfterWithMicroseconds (): void
958976 {
959977 $ time1 = new Time ('2024-01-01 12:00:00.654321 ' );
You can’t perform that action at this time.
0 commit comments