Skip to content

Commit 482d29e

Browse files
committed
Add more pacific codes
1 parent 2ff4f88 commit 482d29e

File tree

4 files changed

+9
-0
lines changed

4 files changed

+9
-0
lines changed

src/Constants/CountryAll.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ class CountryAll
7878
/*
7979
* Pacific
8080
*/
81+
CountryPacific::COUNTRY_CODE_PF => CountryPacific::COUNTRY_NAME_PF,
8182
CountryPacific::COUNTRY_CODE_PG => CountryPacific::COUNTRY_NAME_PG,
8283

8384
/*

src/Constants/CountryPacific.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,16 @@ class CountryPacific
2525
/*
2626
* Codes Pacific
2727
*/
28+
public const COUNTRY_CODE_PF = 'PF';
2829
public const COUNTRY_CODE_PG = 'PG';
2930

3031
/*
3132
* Countries Pacific
3233
*/
34+
public const COUNTRY_NAME_PF = [
35+
Language::DE_DE => 'Französisch-Polynesien',
36+
Language::EN_GB => 'French Polynesia',
37+
];
3338
public const COUNTRY_NAME_PG = [
3439
Language::DE_DE => 'Papua-Neuguinea',
3540
Language::EN_GB => 'Papua New Guinea',

tests/Unit/CountryTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ public function dataProvider(): array
142142
/**
143143
* getName: Pacific
144144
*/
145+
[++$number, 'getName', null, CountryPacific::COUNTRY_CODE_PF, CountryPacific::COUNTRY_NAME_PF[Language::EN_GB]],
145146
[++$number, 'getName', null, CountryPacific::COUNTRY_CODE_PG, CountryPacific::COUNTRY_NAME_PG[Language::EN_GB]],
146147

147148
/**

tests/Unit/TimezoneTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,8 @@ public function dataProvider(): array
165165
/**
166166
* getCountry/getCountryName: Pacific
167167
*/
168+
[++$number, 'getCountryCode', null, 'Pacific/Marquesas', CountryPacific::COUNTRY_CODE_PF],
169+
[++$number, 'getCountryName', null, 'Pacific/Marquesas', CountryPacific::COUNTRY_NAME_PF[Language::EN_GB]],
168170
[++$number, 'getCountryCode', null, 'Pacific/Port_Moresby', CountryPacific::COUNTRY_CODE_PG],
169171
[++$number, 'getCountryName', null, 'Pacific/Port_Moresby', CountryPacific::COUNTRY_NAME_PG[Language::EN_GB]],
170172

0 commit comments

Comments
 (0)