DragonBe\Vies\Vies::listEuropeanCountries PHP Method

listEuropeanCountries() public static method

A list of European Union countries as of January 2015
public static listEuropeanCountries ( ) : array
return array
    public static function listEuropeanCountries()
    {
        return ['AT' => 'Austria', 'BE' => 'Belgium', 'BG' => 'Bulgaria', 'CY' => 'Cyprus', 'CZ' => 'Czech Republic', 'DE' => 'Germany', 'DK' => 'Denmark', 'EE' => 'Estonia', 'EL' => 'Greece', 'ES' => 'Spain', 'FI' => 'Finland', 'FR' => 'France', 'HR' => 'Croatia', 'HU' => 'Hungary', 'IE' => 'Ireland', 'IT' => 'Italy', 'LU' => 'Luxembourg', 'LV' => 'Latvia', 'LT' => 'Lithuania', 'MT' => 'Malta', 'NL' => 'Netherlands', 'PL' => 'Poland', 'PT' => 'Portugal', 'RO' => 'Romania', 'SE' => 'Sweden', 'SI' => 'Slovenia', 'SK' => 'Slovakia', 'GB' => 'United Kingdom'];
    }

Usage Example

示例#1
0
 /**
  * @covers \DragonBe\Vies\Vies::listEuropeanCountries
  */
 public function testRetrievingListOfEuropeanCountriesStatically()
 {
     $countryList = Vies::listEuropeanCountries();
     $this->assertCount(Vies::VIES_EU_COUNTRY_TOTAL, $countryList);
 }