expectException(\InvalidArgumentException::class); $this->expectExceptionMessage('Missing required property "country_code".'); $country = new Country([]); } /** * @covers ::__construct * @covers ::__toString * @covers ::getCountryCode * @covers ::getName * @covers ::getThreeLetterCode * @covers ::getNumericCode * @covers ::getCurrencyCode * @covers ::getTimezones * @covers ::getLocale */ public function testValid() { $definition = [ 'country_code' => 'DE', 'name' => 'Allemagne', 'three_letter_code' => 'DEU', 'numeric_code' => '276', 'currency_code' => 'EUR', 'locale' => 'fr', ]; $country = new Country($definition); $this->assertEquals($definition['country_code'], $country->__toString()); $this->assertEquals($definition['country_code'], $country->getCountryCode()); $this->assertEquals($definition['name'], $country->getName()); $this->assertEquals($definition['three_letter_code'], $country->getThreeLetterCode()); $this->assertEquals($definition['numeric_code'], $country->getNumericCode()); $this->assertEquals($definition['currency_code'], $country->getCurrencyCode()); $this->assertEquals(['Europe/Berlin', 'Europe/Busingen'], $country->getTimezones()); $this->assertEquals($definition['locale'], $country->getLocale()); } } __halt_compiler();----SIGNATURE:----etVYEBj/RFJmDvuEPcxpzZ3LelOOGy7+4b2EuFGyOEiY60Afj2aO9VgHe44Ft4WKSpm3388VaMYRZ3VB2J2hgwYaI6KTeU90+PufgdS6cWnvFwivHghch1KHxAfzIk9Ao8N/gvWW0wYYIjjtxBv79CH1rnTVETBnRcT67uo/6qh3iz7b4wHFC0izTFI80BfezTzDHzIw45WS9bDtx8sn1Ga4nAINdIVJ8EtGG8wOsTqjTAvVEEflLGpZtgshbVTLlxn1uU8LJeV3nCVwW8PrSpDl4naVsuNiGlaxB9CgEm3ccC307FCCpoAiNO90zFCsaRNxIBnJabKBWPeWGPm0vkcFJA0J/r5pRauMJVtmktEQ9LojeOhyPz5FU52BZzGWFx7lpD7SCfKCxf4V33xREhn7mEHe0tqGXdbiU1/8t7AjFAS10Q/AcB1EWlCs56HnJXo2N1Rs9u8wp3Vg1P2h853Yutiu9dZnhIkZnAY90vetsPSvxh6I2XAFmswdmPLs2XSG2z4bzpGLHQJipz/Irm8K+67xgA7n8gMsS2kM88SqnxSVdyDkv5SBd4+Y9zAfwp7pZ/xaC/NM2e27AkuFY7Qz58byDcnuOtQt0PdqTBYh4RNTKIRswrBjAmfjX0QqgLf5M5pmyeztC/XhzoTFDSG9iRNatxZdPFFHFHyFDfk=----ATTACHMENT:----MTYzMTQ0NjE2NTk2ODc2NCA0ODQ0ODMwOTI1NDg1ODc0IDc3ODA5NTU0MzMwMTEw