From e935e0c6d3879d2931c0d75af763ffdb99b69ff8 Mon Sep 17 00:00:00 2001 From: Clemens Schwaighofer Date: Thu, 25 Jun 2026 15:16:24 +0900 Subject: [PATCH] Error test for debug support, try to print out the error Set correct phpunit version too --- .github/workflows/call-php-static-checks-and-test.yml | 2 ++ test/phpunit/Debug/CoreLibsDebugSupportTest.php | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/call-php-static-checks-and-test.yml b/.github/workflows/call-php-static-checks-and-test.yml index 5069d3e..06bfe0b 100644 --- a/.github/workflows/call-php-static-checks-and-test.yml +++ b/.github/workflows/call-php-static-checks-and-test.yml @@ -13,6 +13,7 @@ jobs: uses: ./.github/workflows/php-static-checks-and-tests.yml with: php-version: '8.4,8.5' + phpunit-version: '^9' composer-directory: './' source-directory: './src' disable-phan: ${{ vars.DISABLE_PHAN_CHECK == 'true' || false }} @@ -26,6 +27,7 @@ jobs: uses: OmnicomProduction-Japan/Content.github-actions/.github/workflows/php-static-checks-and-tests.yml@v1 with: php-version: '8.4,8.5' + phpunit-version: '^9' composer-directory: './' source-directory: './src' disable-phan: ${{ vars.DISABLE_PHAN_CHECK == 'true' || false }} diff --git a/test/phpunit/Debug/CoreLibsDebugSupportTest.php b/test/phpunit/Debug/CoreLibsDebugSupportTest.php index 7b6ed19..cdc050a 100644 --- a/test/phpunit/Debug/CoreLibsDebugSupportTest.php +++ b/test/phpunit/Debug/CoreLibsDebugSupportTest.php @@ -463,7 +463,6 @@ final class CoreLibsDebugSupportTest extends TestCase * @testWith ["vendor/phpunit/phpunit/src/Framework/TestCase.php:6434","phar:///home/clemens/.phive/phars/phpunit-9.6.13.phar/phpunit/Framework/TestCase.php:6434"] * @testdox getCallerFileLine check based on regex .../Framework/TestCase.php:\d+ [$_dataName] * - * @param string $expected * @return void */ public function testGetCallerFileLine(): void @@ -479,7 +478,8 @@ final class CoreLibsDebugSupportTest extends TestCase . "\/Framework\/TestCase.php:\d+$/"; $this->assertMatchesRegularExpression( $regex, - Support::getCallerFileLine() + Support::getCallerFileLine(), + 'Failed for: ' . Support::getCallerFileLine() ); }