. */ namespace Fisharebest\Webtrees\Census; /** * Test harness for the class CensusOfCzechRepublic */ class CensusOfCzechRepublicTest extends \PHPUnit_Framework_TestCase { /** * Test the census place * * @covers Fisharebest\Webtrees\Census\CensusOfCzechRepublic */ public function testPlace() { $census = new CensusOfCzechRepublic; $this->assertSame('Česko', $census->censusPlace()); } /** * Test the census dates * * @covers Fisharebest\Webtrees\Census\CensusOfCzechRepublic */ public function testAllDates() { $census = new CensusOfCzechRepublic; $census_dates = $census->allCensusDates(); $this->assertCount(2, $census_dates); $this->assertInstanceOf('Fisharebest\Webtrees\Census\CensusOfCzechRepublic1880', $census_dates[0]); $this->assertInstanceOf('Fisharebest\Webtrees\Census\CensusOfCzechRepublic1921', $census_dates[1]); } }