1a53db70dSGreg Roach<?php 23976b470SGreg Roach 3a53db70dSGreg Roach/** 4a53db70dSGreg Roach * webtrees: online genealogy 58fcd0d32SGreg Roach * Copyright (C) 2019 webtrees development team 6a53db70dSGreg Roach * This program is free software: you can redistribute it and/or modify 7a53db70dSGreg Roach * it under the terms of the GNU General Public License as published by 8a53db70dSGreg Roach * the Free Software Foundation, either version 3 of the License, or 9a53db70dSGreg Roach * (at your option) any later version. 10a53db70dSGreg Roach * This program is distributed in the hope that it will be useful, 11a53db70dSGreg Roach * but WITHOUT ANY WARRANTY; without even the implied warranty of 12a53db70dSGreg Roach * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13a53db70dSGreg Roach * GNU General Public License for more details. 14a53db70dSGreg Roach * You should have received a copy of the GNU General Public License 15a53db70dSGreg Roach * along with this program. If not, see <http://www.gnu.org/licenses/>. 16a53db70dSGreg Roach */ 17e7f56f2aSGreg Roachdeclare(strict_types=1); 18e7f56f2aSGreg Roach 19a53db70dSGreg Roachnamespace Fisharebest\Webtrees\Census; 20a53db70dSGreg Roach 21*3cfcc809SGreg Roachuse Fisharebest\Webtrees\TestCase; 22*3cfcc809SGreg Roach 23a53db70dSGreg Roach/** 24a53db70dSGreg Roach * Test harness for the class CensusColumnAgeFemale5Years 25a53db70dSGreg Roach */ 26*3cfcc809SGreg Roachclass CensusTest extends TestCase 27c1010edaSGreg Roach{ 28a53db70dSGreg Roach /** 2915d603e7SGreg Roach * @covers \Fisharebest\Webtrees\Census\Census 3052348eb8SGreg Roach * 3152348eb8SGreg Roach * @return void 32a53db70dSGreg Roach */ 339b802b22SGreg Roach public function testCensusPlaces(): void 34c1010edaSGreg Roach { 3516e7dcbfSGreg Roach $censuses = Census::censusPlaces('XX'); 36a53db70dSGreg Roach 37ce92b752Smpwt $this->assertCount(8, $censuses); 38*3cfcc809SGreg Roach $this->assertInstanceOf(CensusOfCzechRepublic::class, $censuses[0]); 39*3cfcc809SGreg Roach $this->assertInstanceOf(CensusOfDenmark::class, $censuses[1]); 40*3cfcc809SGreg Roach $this->assertInstanceOf(CensusOfDeutschland::class, $censuses[2]); 41*3cfcc809SGreg Roach $this->assertInstanceOf(CensusOfEngland::class, $censuses[3]); 42*3cfcc809SGreg Roach $this->assertInstanceOf(CensusOfFrance::class, $censuses[4]); 43*3cfcc809SGreg Roach $this->assertInstanceOf(CensusOfScotland::class, $censuses[5]); 44*3cfcc809SGreg Roach $this->assertInstanceOf(CensusOfUnitedStates::class, $censuses[6]); 45*3cfcc809SGreg Roach $this->assertInstanceOf(CensusOfWales::class, $censuses[7]); 46a53db70dSGreg Roach } 47a53db70dSGreg Roach} 48