. */ namespace Fisharebest\Webtrees\Census; use Fisharebest\Webtrees\Date; use Mockery; /** * 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(6, $censuses); $this->assertInstanceOf(CensusOfDenmark::class, $censuses[0]); $this->assertInstanceOf(CensusOfEngland::class, $censuses[1]); $this->assertInstanceOf(CensusOfFrance::class, $censuses[2]); $this->assertInstanceOf(CensusOfScotland::class, $censuses[3]); $this->assertInstanceOf(CensusOfUnitedStates::class, $censuses[4]); $this->assertInstanceOf(CensusOfWales::class, $censuses[5]); } }