. */ declare(strict_types=1); namespace Fisharebest\Webtrees\Census; use Fisharebest\Webtrees\TestCase; /** * Test harness for the class CensusOfSlovakia */ class CensusOfSlovakiaTest extends TestCase { /** * Test the census place * * @covers \Fisharebest\Webtrees\Census\CensusOfSlovakia * * @return void */ public function testPlace(): void { $census = new CensusOfSlovakia(); $this->assertSame('Slovensko', $census->censusPlace()); } /** * Test the census dates * * @covers \Fisharebest\Webtrees\Census\CensusOfSlovakia * * @return void */ public function testAllDates(): void { $census = new CensusOfSlovakia(); $census_dates = $census->allCensusDates(); $this->assertCount(1, $census_dates); $this->assertInstanceOf(CensusOfSlovakia1869::class, $census_dates[0]); } }