From c2ea2b7dff0e9eb6068a02e381a87a1c084fa0bb Mon Sep 17 00:00:00 2001 From: Rasmus Graham <2124386+rasmusbe@users.noreply.github.com> Date: Tue, 6 Oct 2026 11:45:33 +0200 Subject: [PATCH] Fetch meta test data from HEAD instead of master --- tests/InterimNumberTest.php | 2 +- tests/PersonnummerTest.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/InterimNumberTest.php b/tests/InterimNumberTest.php index b1489f5..fbff705 100644 --- a/tests/InterimNumberTest.php +++ b/tests/InterimNumberTest.php @@ -21,7 +21,7 @@ class InterimNumberTest extends TestCase private static function init(): void { if (self::$interim === null) { - $data = json_decode(file_get_contents('https://raw.githubusercontent.com/personnummer/meta/master/testdata/interim.json'), true, 512, JSON_THROW_ON_ERROR); // phpcs:ignore + $data = json_decode(file_get_contents('https://raw.githubusercontent.com/personnummer/meta/HEAD/testdata/interim.json'), true, 512, JSON_THROW_ON_ERROR); // phpcs:ignore self::$interim = array_map( static fn(array $p) => new PersonnummerData($p), $data, diff --git a/tests/PersonnummerTest.php b/tests/PersonnummerTest.php index b0cab44..a163db1 100644 --- a/tests/PersonnummerTest.php +++ b/tests/PersonnummerTest.php @@ -29,8 +29,8 @@ class PersonnummerTest extends TestCase public static function setUpBeforeClass(): void { - self::$testdataList = json_decode(file_get_contents('https://raw.githubusercontent.com/personnummer/meta/master/testdata/list.json'), true, 512, JSON_THROW_ON_ERROR); // phpcs:ignore - self::$testdataStructured = json_decode(file_get_contents('https://raw.githubusercontent.com/personnummer/meta/master/testdata/structured.json'), true, 512, JSON_THROW_ON_ERROR); // phpcs:ignore + self::$testdataList = json_decode(file_get_contents('https://raw.githubusercontent.com/personnummer/meta/HEAD/testdata/list.json'), true, 512, JSON_THROW_ON_ERROR); // phpcs:ignore + self::$testdataStructured = json_decode(file_get_contents('https://raw.githubusercontent.com/personnummer/meta/HEAD/testdata/structured.json'), true, 512, JSON_THROW_ON_ERROR); // phpcs:ignore } public function testParse(): void