. */ declare(strict_types=1); namespace Fisharebest\Webtrees\Census; use Fisharebest\Webtrees\TestCase; /** * Test harness for the class CensusOfDeutschland */ class CensusOfDeutschlandTest extends TestCase { /** * Test the census place * * @covers \Fisharebest\Webtrees\Census\CensusOfDeutschland */ public function testPlace(): void { $census = new CensusOfDeutschland(); self::assertSame('Deutschland', $census->censusPlace()); } /** * Test the census language * * @covers \Fisharebest\Webtrees\Census\CensusOfDeutschland */ public function testLanguage(): void { $census = new CensusOfDeutschland(); self::assertSame('de', $census->censusLanguage()); } /** * Test the census dates * * @covers \Fisharebest\Webtrees\Census\CensusOfDeutschland */ 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]); } }