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