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