. */ namespace Fisharebest\Webtrees\Census; /** * Test harness for the class CensusOfFrance1901 */ class CensusOfFrance1901Test extends \PHPUnit_Framework_TestCase { /** * Test the census place and date * * @covers Fisharebest\Webtrees\Census\CensusOfFrance1901 */ public function testPlaceAndDate() { $census = new CensusOfFrance1901; $this->assertSame('France', $census->censusPlace()); $this->assertSame('1901', $census->censusDate()); } /** * Test the census columns * * @covers Fisharebest\Webtrees\Census\CensusOfFrance1901 * @covers Fisharebest\Webtrees\Census\AbstractCensusColumn */ public function testColumns() { $census = new CensusOfFrance1901; $columns = $census->columns(); $this->assertCount(1, $columns); $this->assertInstanceOf(CensusColumnNull::class, $columns[0]); $this->assertSame('XXXX', $columns[0]->abbreviation()); $this->assertSame('XXXX', $columns[0]->title()); } }