Skip to content

Commit de9174b

Browse files
committed
Add test for #8
1 parent 8ea04a1 commit de9174b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

test/RangerTest.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,4 +237,12 @@ public function testIssue4()
237237
$result = $r->format('2020-12-03', '2020-12-04');
238238
$this->assertEquals('3 – 4 de diciembre de 2020', $result);
239239
}
240+
241+
public function testIssue8()
242+
{
243+
$r = new Ranger('de');
244+
$r->setTimeType(IntlDateFormatter::SHORT);
245+
$result = $r->format('2022-05-04 20:00:00', '2022-05-04 20:00:00');
246+
$this->assertEquals('04.05.2022, 20:00', $result);
247+
}
240248
}

0 commit comments

Comments
 (0)