xref: /webtrees/tests/app/Census/CensusTest.php (revision ce92b752bc949d88e324abf0e2284c2bcf2ded7c)
1a53db70dSGreg Roach<?php
2a53db70dSGreg Roach
3a53db70dSGreg Roach/**
4a53db70dSGreg Roach * webtrees: online genealogy
5369c0ce6SGreg Roach * Copyright (C) 2016 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 */
17a53db70dSGreg Roachnamespace Fisharebest\Webtrees\Census;
18a53db70dSGreg Roach
19a53db70dSGreg Roach/**
20a53db70dSGreg Roach * Test harness for the class CensusColumnAgeFemale5Years
21a53db70dSGreg Roach */
22a53db70dSGreg Roachclass CensusTest extends \PHPUnit_Framework_TestCase {
23a53db70dSGreg Roach	/**
24a53db70dSGreg Roach	 * @covers Fisharebest\Webtrees\Census\Census
25a53db70dSGreg Roach	 */
26a53db70dSGreg Roach	public function testAllCensus() {
27a53db70dSGreg Roach		$censuses = Census::allCensusPlaces();
28a53db70dSGreg Roach
29*ce92b752Smpwt		$this->assertCount(8, $censuses);
30c2a8c8bfSGreg Roach		$this->assertInstanceOf('Fisharebest\Webtrees\Census\CensusOfCzechRepublic', $censuses[0]);
31c2a8c8bfSGreg Roach		$this->assertInstanceOf('Fisharebest\Webtrees\Census\CensusOfDenmark', $censuses[1]);
32*ce92b752Smpwt		$this->assertInstanceOf('Fisharebest\Webtrees\Census\CensusOfDeutschland', $censuses[2]);
33*ce92b752Smpwt		$this->assertInstanceOf('Fisharebest\Webtrees\Census\CensusOfEngland', $censuses[3]);
34*ce92b752Smpwt		$this->assertInstanceOf('Fisharebest\Webtrees\Census\CensusOfFrance', $censuses[4]);
35*ce92b752Smpwt		$this->assertInstanceOf('Fisharebest\Webtrees\Census\CensusOfScotland', $censuses[5]);
36*ce92b752Smpwt		$this->assertInstanceOf('Fisharebest\Webtrees\Census\CensusOfUnitedStates', $censuses[6]);
37*ce92b752Smpwt		$this->assertInstanceOf('Fisharebest\Webtrees\Census\CensusOfWales', $censuses[7]);
38a53db70dSGreg Roach	}
39a53db70dSGreg Roach}
40