. */ declare(strict_types=1); namespace Fisharebest\Webtrees\Census; use Fisharebest\Webtrees\Individual; use Fisharebest\Webtrees\TestCase; use PHPUnit\Framework\Attributes\CoversClass; #[CoversClass(CensusColumnSexMK::class)] #[CoversClass(AbstractCensusColumn::class)] class CensusColumnSexMKTest extends TestCase { public function testMale(): void { $individual = $this->createMock(Individual::class); $individual->method('sex')->willReturn('M'); $census = $this->createMock(CensusInterface::class); $column = new CensusColumnSexMK($census, '', ''); self::assertSame('M', $column->generate($individual, $individual)); } public function testFeale(): void { $individual = $this->createMock(Individual::class); $individual->method('sex')->willReturn('F'); $census = $this->createMock(CensusInterface::class); $column = new CensusColumnSexMK($census, '', ''); self::assertSame('K', $column->generate($individual, $individual)); } public function testUnknownSex(): void { $individual = $this->createMock(Individual::class); $individual->method('sex')->willReturn('U'); $census = $this->createMock(CensusInterface::class); $column = new CensusColumnSexMK($census, '', ''); self::assertSame('', $column->generate($individual, $individual)); } }