From 30855bbe6daa178308037a7cecc4a5e42013c40d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrei=20Ioni=C8=9B=C4=83?= Date: Thu, 31 Jul 2025 12:53:27 +0100 Subject: [PATCH] test: extend support to php 8.1 --- .github/workflows/tests.yml | 1 + composer.json | 6 +++--- tests/IntBackedEnum/ArrayableTest.php | 3 --- tests/StringBackedEnum/ArrayableTest.php | 3 --- 4 files changed, 4 insertions(+), 9 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index fa634a1..9a19915 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -13,6 +13,7 @@ jobs: fail-fast: false matrix: php: + - 8.1 - 8.2 - 8.3 - 8.4 diff --git a/composer.json b/composer.json index 414d680..a07caa6 100644 --- a/composer.json +++ b/composer.json @@ -5,12 +5,12 @@ "license": "MPL-2.0", "require": { - "php": "^8.2", - "illuminate/support": "^11.0|^12.0" + "php": "^8.1", + "illuminate/support": "^10.0|^11.0|^12.0" }, "require-dev": { "friendsofphp/php-cs-fixer": "^3.84", - "orchestra/testbench": "^9.0|^10.0" + "orchestra/testbench": "^8.0|^9.0|^10.0" }, "autoload": { "psr-4": { diff --git a/tests/IntBackedEnum/ArrayableTest.php b/tests/IntBackedEnum/ArrayableTest.php index 8ce69ce..f8ba6a9 100644 --- a/tests/IntBackedEnum/ArrayableTest.php +++ b/tests/IntBackedEnum/ArrayableTest.php @@ -19,7 +19,6 @@ public function it_can_list_names_of_an_int_backed_enum(): void $this->assertIsArray($names); $this->assertCount(5, $names); $this->assertSame($expected, $names); - $this->assertContainsOnlyString($names); } #[Test] @@ -31,7 +30,6 @@ public function it_can_list_values_of_an_int_backed_enum(): void $this->assertIsArray($values); $this->assertCount(5, $values); $this->assertSame($expected, $values); - $this->assertContainsOnlyInt($values); } #[Test] @@ -49,6 +47,5 @@ public function it_can_list_options_of_an_int_backed_enum(): void $this->assertIsArray($options); $this->assertCount(5, $options); $this->assertSame($expected, $options); - $this->assertContainsOnlyString($options); } } diff --git a/tests/StringBackedEnum/ArrayableTest.php b/tests/StringBackedEnum/ArrayableTest.php index 336bfd5..46761d9 100644 --- a/tests/StringBackedEnum/ArrayableTest.php +++ b/tests/StringBackedEnum/ArrayableTest.php @@ -19,7 +19,6 @@ public function it_can_list_names_of_a_string_backed_enum(): void $this->assertIsArray($names); $this->assertCount(5, $names); $this->assertSame($expected, $names); - $this->assertContainsOnlyString($names); } #[Test] @@ -31,7 +30,6 @@ public function it_can_list_values_of_a_string_backed_enum(): void $this->assertIsArray($values); $this->assertCount(5, $values); $this->assertSame($expected, $values); - $this->assertContainsOnlyString($values); } #[Test] @@ -49,6 +47,5 @@ public function it_can_list_options_of_a_string_backed_enum(): void $this->assertIsArray($options); $this->assertCount(5, $options); $this->assertSame($expected, $options); - $this->assertContainsOnlyString($options); } }