. */ namespace Fisharebest\Webtrees\Census; use Mockery; /** * Test harness for the class CensusColumnReligion */ class CensusColumnReligionTest extends \PHPUnit\Framework\TestCase { /** * Delete mock objects */ public function tearDown() { Mockery::close(); } /** * @covers \Fisharebest\Webtrees\Census\CensusColumnReligion * @covers \Fisharebest\Webtrees\Census\AbstractCensusColumn */ public function testReligion() { $individual = Mockery::mock('Fisharebest\Webtrees\Individual'); $census = Mockery::mock('Fisharebest\Webtrees\Census\CensusInterface'); $census->shouldReceive('censusDate')->andReturn('01 JUN 1860'); $column = new CensusColumnReligion($census, '', ''); $this->assertSame('', $column->generate($individual)); } }