1*c2a8c8bfSGreg Roach<?php 2*c2a8c8bfSGreg Roach 3*c2a8c8bfSGreg Roach/** 4*c2a8c8bfSGreg Roach * webtrees: online genealogy 5*c2a8c8bfSGreg Roach * Copyright (C) 2015 webtrees development team 6*c2a8c8bfSGreg Roach * This program is free software: you can redistribute it and/or modify 7*c2a8c8bfSGreg Roach * it under the terms of the GNU General Public License as published by 8*c2a8c8bfSGreg Roach * the Free Software Foundation, either version 3 of the License, or 9*c2a8c8bfSGreg Roach * (at your option) any later version. 10*c2a8c8bfSGreg Roach * This program is distributed in the hope that it will be useful, 11*c2a8c8bfSGreg Roach * but WITHOUT ANY WARRANTY; without even the implied warranty of 12*c2a8c8bfSGreg Roach * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13*c2a8c8bfSGreg Roach * GNU General Public License for more details. 14*c2a8c8bfSGreg Roach * You should have received a copy of the GNU General Public License 15*c2a8c8bfSGreg Roach * along with this program. If not, see <http://www.gnu.org/licenses/>. 16*c2a8c8bfSGreg Roach */ 17*c2a8c8bfSGreg Roachnamespace Fisharebest\Webtrees\Census; 18*c2a8c8bfSGreg Roach 19*c2a8c8bfSGreg Roach/** 20*c2a8c8bfSGreg Roach * Test harness for the class CensusOfCzechRepublic 21*c2a8c8bfSGreg Roach */ 22*c2a8c8bfSGreg Roachclass CensusOfCzechRepublicTest extends \PHPUnit_Framework_TestCase { 23*c2a8c8bfSGreg Roach /** 24*c2a8c8bfSGreg Roach * Test the census place 25*c2a8c8bfSGreg Roach * 26*c2a8c8bfSGreg Roach * @covers Fisharebest\Webtrees\Census\CensusOfCzechRepublic 27*c2a8c8bfSGreg Roach */ 28*c2a8c8bfSGreg Roach public function testPlace() { 29*c2a8c8bfSGreg Roach $census = new CensusOfCzechRepublic; 30*c2a8c8bfSGreg Roach 31*c2a8c8bfSGreg Roach $this->assertSame('Česko', $census->censusPlace()); 32*c2a8c8bfSGreg Roach } 33*c2a8c8bfSGreg Roach 34*c2a8c8bfSGreg Roach /** 35*c2a8c8bfSGreg Roach * Test the census dates 36*c2a8c8bfSGreg Roach * 37*c2a8c8bfSGreg Roach * @covers Fisharebest\Webtrees\Census\CensusOfCzechRepublic 38*c2a8c8bfSGreg Roach */ 39*c2a8c8bfSGreg Roach public function testAllDates() { 40*c2a8c8bfSGreg Roach $census = new CensusOfCzechRepublic; 41*c2a8c8bfSGreg Roach 42*c2a8c8bfSGreg Roach $census_dates = $census->allCensusDates(); 43*c2a8c8bfSGreg Roach 44*c2a8c8bfSGreg Roach $this->assertCount(2, $census_dates); 45*c2a8c8bfSGreg Roach $this->assertInstanceOf('Fisharebest\Webtrees\Census\CensusOfCzechRepublic1880', $census_dates[0]); 46*c2a8c8bfSGreg Roach $this->assertInstanceOf('Fisharebest\Webtrees\Census\CensusOfCzechRepublic1921', $census_dates[1]); 47*c2a8c8bfSGreg Roach } 48*c2a8c8bfSGreg Roach} 49