. */ declare(strict_types=1); namespace Fisharebest\Webtrees\Census; use Fisharebest\Webtrees\TestCase; use PHPUnit\Framework\Attributes\CoversClass; #[CoversClass(CensusOfCzechRepublic::class)] class CensusOfCzechRepublicTest extends TestCase { /** * Test the census place */ public function testPlace(): void { $census = new CensusOfCzechRepublic(); self::assertSame('Česko', $census->censusPlace()); } /** * Test the census language */ public function testLanguage(): void { $census = new CensusOfCzechRepublic(); self::assertSame('cs', $census->censusLanguage()); } /** * Test the census dates */ 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]); } }