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
|
uses: ./.github/workflows/php-static-checks-and-tests.yml
|
||||||
with:
|
with:
|
||||||
php-version: '8.4,8.5'
|
php-version: '8.4,8.5'
|
||||||
|
phpunit-version: '^9'
|
||||||
composer-directory: './'
|
composer-directory: './'
|
||||||
source-directory: './src'
|
source-directory: './src'
|
||||||
disable-phan: ${{ vars.DISABLE_PHAN_CHECK == 'true' || false }}
|
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
|
uses: OmnicomProduction-Japan/Content.github-actions/.github/workflows/php-static-checks-and-tests.yml@v1
|
||||||
with:
|
with:
|
||||||
php-version: '8.4,8.5'
|
php-version: '8.4,8.5'
|
||||||
|
phpunit-version: '^9'
|
||||||
composer-directory: './'
|
composer-directory: './'
|
||||||
source-directory: './src'
|
source-directory: './src'
|
||||||
disable-phan: ${{ vars.DISABLE_PHAN_CHECK == 'true' || false }}
|
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"]
|
* @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]
|
* @testdox getCallerFileLine check based on regex .../Framework/TestCase.php:\d+ [$_dataName]
|
||||||
*
|
*
|
||||||
* @param string $expected
|
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function testGetCallerFileLine(): void
|
public function testGetCallerFileLine(): void
|
||||||
@@ -479,7 +478,8 @@ final class CoreLibsDebugSupportTest extends TestCase
|
|||||||
. "\/Framework\/TestCase.php:\d+$/";
|
. "\/Framework\/TestCase.php:\d+$/";
|
||||||
$this->assertMatchesRegularExpression(
|
$this->assertMatchesRegularExpression(
|
||||||
$regex,
|
$regex,
|
||||||
Support::getCallerFileLine()
|
Support::getCallerFileLine(),
|
||||||
|
'Failed for: ' . Support::getCallerFileLine()
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user