diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f0cf1d1..d98749b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -8,12 +8,13 @@ concurrency: cancel-in-progress: true on: - push: - paths-ignore: - - '**.md' pull_request: paths-ignore: - '**.md' + types: + - opened + - synchronize + - reopened jobs: test: @@ -26,6 +27,7 @@ jobs: - ubuntu-latest php-version: - '8.4' + - '8.5' steps: - name: Checkout @@ -55,12 +57,13 @@ jobs: run: composer install --prefer-dist --no-progress - name: Lint + if: matrix.php-version == '8.4' run: | - PHP_CS_FIXER_IGNORE_ENV=True vendor/bin/php-cs-fixer fix --diff --dry-run + vendor/bin/php-cs-fixer fix --diff --dry-run - name: PHPUnit run: | - vendor/bin/phpunit --colors --coverage-text --coverage-clover coverage/clover.xml + vendor/bin/phpunit --colors --display-all-issues --coverage-text --coverage-clover coverage/clover.xml - name: Upload coverage uses: codecov/codecov-action@v6 diff --git a/composer.json b/composer.json index ab5ebb5..90191f0 100644 --- a/composer.json +++ b/composer.json @@ -38,7 +38,7 @@ "php-cs-fixer fix -vvv" ], "test": [ - "phpunit --colors --coverage-html ./coverage" + "phpunit --colors --display-all-issues --coverage-html ./coverage" ] } } diff --git a/composer.lock b/composer.lock index e94c6bc..b6c7fae 100644 --- a/composer.lock +++ b/composer.lock @@ -8,16 +8,16 @@ "packages": [ { "name": "rancoud/security", - "version": "4.0.1", + "version": "4.0.2", "source": { "type": "git", "url": "https://github.com/rancoud/Security.git", - "reference": "2cf4068008957003c274c3d077ee7a2b24903e34" + "reference": "4fbc1ee787e1c1e52a5d9c5019e361934a3f4bed" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/rancoud/Security/zipball/2cf4068008957003c274c3d077ee7a2b24903e34", - "reference": "2cf4068008957003c274c3d077ee7a2b24903e34", + "url": "https://api.github.com/repos/rancoud/Security/zipball/4fbc1ee787e1c1e52a5d9c5019e361934a3f4bed", + "reference": "4fbc1ee787e1c1e52a5d9c5019e361934a3f4bed", "shasum": "" }, "require": { @@ -47,9 +47,9 @@ "description": "Security package", "support": { "issues": "https://github.com/rancoud/Security/issues", - "source": "https://github.com/rancoud/Security/tree/4.0.1" + "source": "https://github.com/rancoud/Security/tree/4.0.2" }, - "time": "2026-03-15T11:47:47+00:00" + "time": "2026-05-31T17:46:21+00:00" } ], "packages-dev": [ diff --git a/tests/PaginationTest.php b/tests/PaginationTest.php index 2813c38..f2b493e 100644 --- a/tests/PaginationTest.php +++ b/tests/PaginationTest.php @@ -936,37 +936,37 @@ public function testLocateItemInPage(int $countElementPerPage, int $itemIndex, i public static function provideExceptionDataCases(): iterable { yield 'aria_label_nav' => [ - 'conf' => ['aria_label_nav' => \chr(99999999)], + 'conf' => ['aria_label_nav' => "\xFF"], 'message' => 'could not escAttr "nav" aria label: String to convert is not valid for the specified charset' ]; yield 'text_previous' => [ - 'conf' => ['text_previous' => \chr(99999999), 'always_use_previous' => true], + 'conf' => ['text_previous' => "\xFF", 'always_use_previous' => true], 'message' => 'could not escHTML "previous" text: String to convert is not valid for the specified charset' ]; yield 'aria_label_previous' => [ - 'conf' => ['aria_label_previous' => \chr(99999999), 'always_use_previous' => true], + 'conf' => ['aria_label_previous' => "\xFF", 'always_use_previous' => true], 'message' => 'could not escAttr "previous" aria label or "previous" href: String to convert is not valid for the specified charset' ]; yield 'text_next' => [ - 'conf' => ['text_next' => \chr(99999999), 'always_use_next' => true], + 'conf' => ['text_next' => "\xFF", 'always_use_next' => true], 'message' => 'could not escHTML "next" text: String to convert is not valid for the specified charset' ]; yield 'aria_label_next' => [ - 'conf' => ['aria_label_next' => \chr(99999999), 'always_use_next' => true], + 'conf' => ['aria_label_next' => "\xFF", 'always_use_next' => true], 'message' => 'could not escAttr "next" aria label or "next" href: String to convert is not valid for the specified charset' ]; yield 'aria_label_link' => [ - 'conf' => ['aria_label_link' => \chr(99999999)], + 'conf' => ['aria_label_link' => "\xFF"], 'message' => 'could not escAttr "item" aria label or "item" href: String to convert is not valid for the specified charset' ]; yield 'text_page' => [ - 'conf' => ['text_page' => \chr(99999999)], + 'conf' => ['text_page' => "\xFF"], 'message' => 'could not escHTML "item" text: String to convert is not valid for the specified charset' ]; }