. */ declare(strict_types=1); namespace Fisharebest\Webtrees\Census; use Fisharebest\Webtrees\Date; use Fisharebest\Webtrees\Individual; use Fisharebest\Webtrees\TestCase; use PHPUnit\Framework\Attributes\CoversClass; #[CoversClass(CensusColumnBirthMonthDay::class)] #[CoversClass(AbstractCensusColumn::class)] class CensusColumnBirthMonthDayTest extends TestCase { public function testGenerateColumn(): void { $individual = $this->createMock(Individual::class); $individual->method('getEstimatedBirthDate')->willReturn(new Date('02 MAR 1800')); $census = $this->createMock(CensusInterface::class); $census->method('censusDate')->willReturn('30 JUN 1832'); $column = new CensusColumnBirthMonthDay($census, '', ''); self::assertSame('Mar 2', $column->generate($individual, $individual)); } }