. */ 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(\Fisharebest\Webtrees\Census\CensusOfCzechRepublic1880::class, $census_dates[0]); $this->assertInstanceOf(\Fisharebest\Webtrees\Census\CensusOfCzechRepublic1890::class, $census_dates[1]); $this->assertInstanceOf(\Fisharebest\Webtrees\Census\CensusOfCzechRepublic1900::class, $census_dates[2]); $this->assertInstanceOf(\Fisharebest\Webtrees\Census\CensusOfCzechRepublic1910::class, $census_dates[3]); $this->assertInstanceOf(\Fisharebest\Webtrees\Census\CensusOfCzechRepublic1921::class, $census_dates[4]); } }