. */ declare(strict_types=1); namespace Fisharebest\Webtrees\Census; use Fisharebest\Webtrees\Date; use Fisharebest\Webtrees\Individual; use Fisharebest\Webtrees\TestCase; /** * Test harness for the class CensusColumnBirthDayDotMonthYearTest */ class CensusColumnBirthDayDotMonthYearTest extends TestCase { /** * @covers \Fisharebest\Webtrees\Census\CensusColumnBirthDayDotMonthYear * @covers \Fisharebest\Webtrees\Census\AbstractCensusColumn * * @return void */ public function testGenerateColumn(): void { $individual = self::createMock(Individual::class); $individual->method('getEstimatedBirthDate')->willReturn(new Date('02 MAR 1800')); $census = self::createMock(CensusInterface::class); $census->method('censusDate')->willReturn('30 JUN 1832'); $column = new CensusColumnBirthDayDotMonthYear($census, '', ''); self::assertSame('2. March 1800', $column->generate($individual, $individual)); } }