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