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