xref: /webtrees/tests/app/Census/CensusTest.php (revision 9b802b22a7b94d1d30e0433dd46fe641f3757505)
1a53db70dSGreg Roach<?php
2a53db70dSGreg Roach/**
3a53db70dSGreg Roach * webtrees: online genealogy
48fcd0d32SGreg Roach * Copyright (C) 2019 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 */
16e7f56f2aSGreg Roachdeclare(strict_types=1);
17e7f56f2aSGreg Roach
18a53db70dSGreg Roachnamespace Fisharebest\Webtrees\Census;
19a53db70dSGreg Roach
20a53db70dSGreg Roach/**
21a53db70dSGreg Roach * Test harness for the class CensusColumnAgeFemale5Years
22a53db70dSGreg Roach */
2384e2cf4eSGreg Roachclass CensusTest extends \Fisharebest\Webtrees\TestCase
24c1010edaSGreg Roach{
25a53db70dSGreg Roach    /**
2615d603e7SGreg Roach     * @covers \Fisharebest\Webtrees\Census\Census
2752348eb8SGreg Roach     *
2852348eb8SGreg Roach     * @return void
29a53db70dSGreg Roach     */
30*9b802b22SGreg Roach    public function testCensusPlaces(): void
31c1010edaSGreg Roach    {
3216e7dcbfSGreg Roach        $censuses = Census::censusPlaces('XX');
33a53db70dSGreg Roach
34ce92b752Smpwt        $this->assertCount(8, $censuses);
35c2a8c8bfSGreg Roach        $this->assertInstanceOf('Fisharebest\Webtrees\Census\CensusOfCzechRepublic', $censuses[0]);
36c2a8c8bfSGreg Roach        $this->assertInstanceOf('Fisharebest\Webtrees\Census\CensusOfDenmark', $censuses[1]);
37ce92b752Smpwt        $this->assertInstanceOf('Fisharebest\Webtrees\Census\CensusOfDeutschland', $censuses[2]);
38ce92b752Smpwt        $this->assertInstanceOf('Fisharebest\Webtrees\Census\CensusOfEngland', $censuses[3]);
39ce92b752Smpwt        $this->assertInstanceOf('Fisharebest\Webtrees\Census\CensusOfFrance', $censuses[4]);
40ce92b752Smpwt        $this->assertInstanceOf('Fisharebest\Webtrees\Census\CensusOfScotland', $censuses[5]);
41ce92b752Smpwt        $this->assertInstanceOf('Fisharebest\Webtrees\Census\CensusOfUnitedStates', $censuses[6]);
42ce92b752Smpwt        $this->assertInstanceOf('Fisharebest\Webtrees\Census\CensusOfWales', $censuses[7]);
43a53db70dSGreg Roach    }
44a53db70dSGreg Roach}
45