Add additional assertion to NodaTimeSplitterTest for more thorough type safety

This commit is contained in:
Joshua Ramon Enslin 2024-05-05 22:54:33 +02:00
parent 7f342ed3c4
commit 83a557b989
Signed by: jrenslin
GPG Key ID: 46016F84501B70AE

View File

@ -1024,6 +1024,7 @@ final class NodaTimeSplitterTest extends TestCase {
// Rewritten / 1950-60-as évek // Rewritten / 1950-60-as évek
$output = NodaTimeSplitter::attempt_splitting("1400-1100 v. Chr."); $output = NodaTimeSplitter::attempt_splitting("1400-1100 v. Chr.");
self::assertNotEmpty($output);
self::assertEquals('-1400', $output->start_year); self::assertEquals('-1400', $output->start_year);
self::assertEquals('-1400-01-01', $output->start_date); self::assertEquals('-1400-01-01', $output->start_date);