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