. */ 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 CensusColumnBirthDaySlashMonthTest */ class CensusColumnBirthDaySlashMonthTest extends TestCase { /** * @covers \Fisharebest\Webtrees\Census\CensusColumnBirthDaySlashMonth * @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 CensusColumnBirthDaySlashMonth($census, '', ''); self::assertSame('2/3', $column->generate($individual, $individual)); } }