. */ namespace Fisharebest\Webtrees\Census; /** * Test harness for the class CensusColumnAgeFemale5Years */ class CensusTest extends \PHPUnit_Framework_TestCase { /** * @covers Fisharebest\Webtrees\Census\Census */ public function testAllCensus() { $censuses = Census::allCensusPlaces(); $this->assertCount(7, $censuses); $this->assertInstanceOf('Fisharebest\Webtrees\Census\CensusOfCzechRepublic', $censuses[0]); $this->assertInstanceOf('Fisharebest\Webtrees\Census\CensusOfDenmark', $censuses[1]); $this->assertInstanceOf('Fisharebest\Webtrees\Census\CensusOfEngland', $censuses[2]); $this->assertInstanceOf('Fisharebest\Webtrees\Census\CensusOfFrance', $censuses[3]); $this->assertInstanceOf('Fisharebest\Webtrees\Census\CensusOfScotland', $censuses[4]); $this->assertInstanceOf('Fisharebest\Webtrees\Census\CensusOfUnitedStates', $censuses[5]); $this->assertInstanceOf('Fisharebest\Webtrees\Census\CensusOfWales', $censuses[6]); } }