1*d5b0584dSGreg Roach<?php 2*d5b0584dSGreg Roach 3*d5b0584dSGreg Roach/** 4*d5b0584dSGreg Roach * webtrees: online genealogy 5*d5b0584dSGreg Roach * Copyright (C) 2019 webtrees development team 6*d5b0584dSGreg Roach * This program is free software: you can redistribute it and/or modify 7*d5b0584dSGreg Roach * it under the terms of the GNU General Public License as published by 8*d5b0584dSGreg Roach * the Free Software Foundation, either version 3 of the License, or 9*d5b0584dSGreg Roach * (at your option) any later version. 10*d5b0584dSGreg Roach * This program is distributed in the hope that it will be useful, 11*d5b0584dSGreg Roach * but WITHOUT ANY WARRANTY; without even the implied warranty of 12*d5b0584dSGreg Roach * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13*d5b0584dSGreg Roach * GNU General Public License for more details. 14*d5b0584dSGreg Roach * You should have received a copy of the GNU General Public License 15*d5b0584dSGreg Roach * along with this program. If not, see <http://www.gnu.org/licenses/>. 16*d5b0584dSGreg Roach */ 17*d5b0584dSGreg Roach 18*d5b0584dSGreg Roachdeclare(strict_types=1); 19*d5b0584dSGreg Roach 20*d5b0584dSGreg Roachnamespace Fisharebest\Webtrees\Census; 21*d5b0584dSGreg Roach 22*d5b0584dSGreg Roachuse Fisharebest\Webtrees\Individual; 23*d5b0584dSGreg Roachuse Fisharebest\Webtrees\TestCase; 24*d5b0584dSGreg Roach 25*d5b0584dSGreg Roach/** 26*d5b0584dSGreg Roach * Test harness for the class CensusColumnRelationToHead 27*d5b0584dSGreg Roach */ 28*d5b0584dSGreg Roachclass CensusColumnRelationToHeadEnglishTest extends TestCase 29*d5b0584dSGreg Roach{ 30*d5b0584dSGreg Roach /** 31*d5b0584dSGreg Roach * @covers \Fisharebest\Webtrees\Census\CensusColumnRelationToHeadEnglish 32*d5b0584dSGreg Roach * @covers \Fisharebest\Webtrees\Census\CensusColumnRelationToHead 33*d5b0584dSGreg Roach * @covers \Fisharebest\Webtrees\Census\AbstractCensusColumn 34*d5b0584dSGreg Roach * 35*d5b0584dSGreg Roach * @return void 36*d5b0584dSGreg Roach */ 37*d5b0584dSGreg Roach public function testNull(): void 38*d5b0584dSGreg Roach { 39*d5b0584dSGreg Roach $individual = $this->createMock(Individual::class); 40*d5b0584dSGreg Roach 41*d5b0584dSGreg Roach $census = $this->createMock(CensusInterface::class); 42*d5b0584dSGreg Roach 43*d5b0584dSGreg Roach $column = new CensusColumnRelationToHeadEnglish($census, '', ''); 44*d5b0584dSGreg Roach 45*d5b0584dSGreg Roach $this->assertSame('head', $column->generate($individual, $individual)); 46*d5b0584dSGreg Roach } 47*d5b0584dSGreg Roach} 48