. */ declare(strict_types=1); namespace Fisharebest\Webtrees\Census; /** * Test harness for the class CensusOfCzechRepublic */ class CensusOfCzechRepublicTest extends \Fisharebest\Webtrees\TestCase { /** * Test the census place * * @covers \Fisharebest\Webtrees\Census\CensusOfCzechRepublic * * @return void */ public function testPlace(): void { $census = new CensusOfCzechRepublic(); $this->assertSame('Česko', $census->censusPlace()); } /** * Test the census dates * * @covers \Fisharebest\Webtrees\Census\CensusOfCzechRepublic * * @return void */ public function testAllDates(): void { $census = new CensusOfCzechRepublic(); $census_dates = $census->allCensusDates(); $this->assertCount(5, $census_dates); $this->assertInstanceOf(CensusOfCzechRepublic1880::class, $census_dates[0]); $this->assertInstanceOf(CensusOfCzechRepublic1890::class, $census_dates[1]); $this->assertInstanceOf(CensusOfCzechRepublic1900::class, $census_dates[2]); $this->assertInstanceOf(CensusOfCzechRepublic1910::class, $census_dates[3]); $this->assertInstanceOf(CensusOfCzechRepublic1921::class, $census_dates[4]); } }