. */ declare(strict_types=1); namespace Fisharebest\Webtrees\Census; use Fisharebest\Webtrees\TestCase; use PHPUnit\Framework\Attributes\CoversClass; #[CoversClass(CensusOfDeutschland::class)] class CensusOfDeutschlandTest extends TestCase { /** * Test the census place */ public function testPlace(): void { $census = new CensusOfDeutschland(); self::assertSame('Deutschland', $census->censusPlace()); } /** * Test the census language */ public function testLanguage(): void { $census = new CensusOfDeutschland(); self::assertSame('de', $census->censusLanguage()); } /** * Test the census dates */ public function testAllDates(): void { $census = new CensusOfDeutschland(); $census_dates = $census->allCensusDates(); self::assertCount(5, $census_dates); self::assertInstanceOf(CensusOfDeutschland1819::class, $census_dates[0]); self::assertInstanceOf(CensusOfDeutschland1867::class, $census_dates[1]); self::assertInstanceOf(CensusOfDeutschlandNL1867::class, $census_dates[2]); self::assertInstanceOf(CensusOfDeutschland1900::class, $census_dates[3]); self::assertInstanceOf(CensusOfDeutschland1919::class, $census_dates[4]); } }