Error test for debug support, try to print out the error
Set correct phpunit version too
This commit is contained in:
@@ -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 }}
|
||||
|
||||
@@ -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()
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user