. */ 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'); $this->assertCount(8, $censuses); $this->assertInstanceOf(CensusOfUnitedStates::class, $censuses[0]); $this->assertInstanceOf(CensusOfEngland::class, $censuses[1]); $this->assertInstanceOf(CensusOfScotland::class, $censuses[2]); $this->assertInstanceOf(CensusOfWales::class, $censuses[3]); $this->assertInstanceOf(CensusOfDeutschland::class, $censuses[4]); $this->assertInstanceOf(CensusOfFrance::class, $censuses[5]); $this->assertInstanceOf(CensusOfCzechRepublic::class, $censuses[6]); $this->assertInstanceOf(CensusOfDenmark::class, $censuses[7]); } }