Error test for debug support, try to print out the error

Set correct phpunit version too
This commit is contained in:
2026-06-25 15:16:24 +09:00
parent 5e972b7aec
commit e935e0c6d3
2 changed files with 4 additions and 2 deletions
@@ -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()
);
}