diff --git a/lang/pakistan/ur/holidays.json b/lang/pakistan/ur/holidays.json new file mode 100644 index 000000000..ad4ec0e80 --- /dev/null +++ b/lang/pakistan/ur/holidays.json @@ -0,0 +1,8 @@ +{ + "Kashmir Solidarity Day": "یوم یکجہتی کشمیر", + "Pakistan Day": "یوم پاکستان", + "Labour Day": "مزدورں کادن", + "Independence Day": "یوم آزادی", + "Iqbal Day": "یوم اقبال", + "Quaid-e-Azam Day": "قائداعظم کا یوم پیدائش" +} diff --git a/src/Countries/Pakistan.php b/src/Countries/Pakistan.php new file mode 100644 index 000000000..da2158357 --- /dev/null +++ b/src/Countries/Pakistan.php @@ -0,0 +1,32 @@ + '02-05', + 'Pakistan Day' => '03-23', + 'Labour Day' => '05-01', + 'Independence Day' => '08-14', + 'Iqbal Day' => '11-09', + 'Quaid-e-Azam Day' => '12-25', + ], $this->variableHolidays($year)); + } + + /** @return array */ + protected function variableHolidays(int $year): array + { + // The variable holidays are all follow lunar calendar so their dates are not confirmed. + return []; + } +} diff --git a/tests/.pest/snapshots/Countries/PakistanTest/it_can_calculate_pakistan_holidays.snap b/tests/.pest/snapshots/Countries/PakistanTest/it_can_calculate_pakistan_holidays.snap new file mode 100644 index 000000000..59b4a0503 --- /dev/null +++ b/tests/.pest/snapshots/Countries/PakistanTest/it_can_calculate_pakistan_holidays.snap @@ -0,0 +1,26 @@ +[ + { + "name": "Kashmir Solidarity Day", + "date": "2024-02-05" + }, + { + "name": "Pakistan Day", + "date": "2024-03-23" + }, + { + "name": "Labour Day", + "date": "2024-05-01" + }, + { + "name": "Independence Day", + "date": "2024-08-14" + }, + { + "name": "Iqbal Day", + "date": "2024-11-09" + }, + { + "name": "Quaid-e-Azam Day", + "date": "2024-12-25" + } +] \ No newline at end of file diff --git a/tests/Countries/PakistanTest.php b/tests/Countries/PakistanTest.php new file mode 100644 index 000000000..e72e90faf --- /dev/null +++ b/tests/Countries/PakistanTest.php @@ -0,0 +1,18 @@ +get(); + + expect($holidays) + ->toBeArray() + ->not()->toBeEmpty(); + + expect(formatDates($holidays))->toMatchSnapshot(); +});