. */ namespace Fisharebest\Webtrees\Census; /** * Test harness for the class CensusOfFrance1906 */ class CensusOfFrance1906Test extends \PHPUnit_Framework_TestCase { /** * Test the census place and date * * @covers Fisharebest\Webtrees\Census\CensusOfFrance1906 */ public function testPlaceAndDate() { $census = new CensusOfFrance1906; $this->assertSame('France', $census->censusPlace()); $this->assertSame('1906', $census->censusDate()); } /** * Test the census columns * * @covers Fisharebest\Webtrees\Census\CensusOfFrance1906 * @covers Fisharebest\Webtrees\Census\AbstractCensusColumn */ public function testColumns() { $census = new CensusOfFrance1906; $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()); } }