. */ namespace Fisharebest\Webtrees\Census; use Mockery; /** * Test harness for the class CensusColumnReligion */ class CensusColumnReligionTest extends \Fisharebest\Webtrees\TestCase { /** * Delete mock objects * * @return void */ public function tearDown() { Mockery::close(); } /** * @covers \Fisharebest\Webtrees\Census\CensusColumnReligion * @covers \Fisharebest\Webtrees\Census\AbstractCensusColumn * * @return void */ 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, $individual)); } }