. */ 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 * * @return void */ public function testPlace(): void { $census = new CensusOfDeutschland(); $this->assertSame('Deutschland', $census->censusPlace()); } /** * Test the census language * * @covers \Fisharebest\Webtrees\Census\CensusOfCzechRepublic * * @return void */ public function testLanguage(): void { $census = new CensusOfDeutschland(); $this->assertSame('de', $census->censusLanguage()); } /** * Test the census dates * * @covers \Fisharebest\Webtrees\Census\CensusOfDeutschland * * @return void */ public function testAllDates(): void { $census = new CensusOfDeutschland(); $census_dates = $census->allCensusDates(); $this->assertCount(5, $census_dates); $this->assertInstanceOf(CensusOfDeutschland1819::class, $census_dates[0]); $this->assertInstanceOf(CensusOfDeutschland1867::class, $census_dates[1]); $this->assertInstanceOf(CensusOfDeutschlandNL1867::class, $census_dates[2]); $this->assertInstanceOf(CensusOfDeutschland1900::class, $census_dates[3]); $this->assertInstanceOf(CensusOfDeutschland1919::class, $census_dates[4]); } }