. */ declare(strict_types=1); namespace Fisharebest\Webtrees\Census; use Fisharebest\Webtrees\TestCase; /** * Test harness for the class CensusColumnAgeFemale5Years */ class CensusTest extends TestCase { /** * @covers \Fisharebest\Webtrees\Census\Census * * @return void */ public function testCensusPlaces(): void { $censuses = Census::censusPlaces('XX'); self::assertCount(9, $censuses); self::assertInstanceOf(CensusOfUnitedStates::class, $censuses[0]); self::assertInstanceOf(CensusOfEngland::class, $censuses[1]); self::assertInstanceOf(CensusOfScotland::class, $censuses[2]); self::assertInstanceOf(CensusOfWales::class, $censuses[3]); self::assertInstanceOf(CensusOfDeutschland::class, $censuses[4]); self::assertInstanceOf(CensusOfFrance::class, $censuses[5]); self::assertInstanceOf(CensusOfCzechRepublic::class, $censuses[6]); self::assertInstanceOf(CensusOfSlovakia::class, $censuses[7]); self::assertInstanceOf(CensusOfDenmark::class, $censuses[8]); } }