xref: /webtrees/tests/app/Census/CensusTest.php (revision 84e2cf4e2b1803b300330f631d304db1a3c443dd)
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 */
21*84e2cf4eSGreg Roachclass CensusTest extends \Fisharebest\Webtrees\TestCase
22c1010edaSGreg Roach{
23a53db70dSGreg Roach    /**
2415d603e7SGreg Roach     * @covers \Fisharebest\Webtrees\Census\Census
25a53db70dSGreg Roach     */
26c1010edaSGreg Roach    public function testCensusPlaces()
27c1010edaSGreg Roach    {
2816e7dcbfSGreg Roach        $censuses = Census::censusPlaces('XX');
29a53db70dSGreg Roach
30ce92b752Smpwt        $this->assertCount(8, $censuses);
31c2a8c8bfSGreg Roach        $this->assertInstanceOf('Fisharebest\Webtrees\Census\CensusOfCzechRepublic', $censuses[0]);
32c2a8c8bfSGreg Roach        $this->assertInstanceOf('Fisharebest\Webtrees\Census\CensusOfDenmark', $censuses[1]);
33ce92b752Smpwt        $this->assertInstanceOf('Fisharebest\Webtrees\Census\CensusOfDeutschland', $censuses[2]);
34ce92b752Smpwt        $this->assertInstanceOf('Fisharebest\Webtrees\Census\CensusOfEngland', $censuses[3]);
35ce92b752Smpwt        $this->assertInstanceOf('Fisharebest\Webtrees\Census\CensusOfFrance', $censuses[4]);
36ce92b752Smpwt        $this->assertInstanceOf('Fisharebest\Webtrees\Census\CensusOfScotland', $censuses[5]);
37ce92b752Smpwt        $this->assertInstanceOf('Fisharebest\Webtrees\Census\CensusOfUnitedStates', $censuses[6]);
38ce92b752Smpwt        $this->assertInstanceOf('Fisharebest\Webtrees\Census\CensusOfWales', $censuses[7]);
39a53db70dSGreg Roach    }
40a53db70dSGreg Roach}
41