/** * @dataProvider provider */ public function testConstruction(Country $country, $expectedIsDefined, $expectedToString) { $this->assertEquals($expectedToString, $country->__toString()); $this->assertEquals($expectedIsDefined, $country->isDefined()); $this->assertEquals(Country::none()->getKey(), $country->getKey()); }