Skip to content

PHPUnit parser not showing error content #711

@mbeccati

Description

@mbeccati

Describe the bug

The new PHPUnit parser is working fine, but failures output is pretty much useless.

To Reproduce

  1. Check https://github.com/mbeccati/php-latest-builds/actions/runs/21581357714#user-content-r0
  2. Error message is not displayed

Expected behavior

Error type is displayed instead of the error message, which is the most important part.

Screenshots

Image

Additional context

XML was:

<testcase name="testCastModernDocumentType" file="/home/runner/work/php-latest-builds/php-latest-builds/src/Symfony/Component/VarDumper/Tests/Caster/DOMCasterTest.php" line="230" class="Symfony\Component\VarDumper\Tests\Caster\DOMCasterTest" classname="Symfony.Component.VarDumper.Tests.Caster.DOMCasterTest" assertions="0" time="0.001032">
--
<error type="TypeError">Symfony\Component\VarDumper\Tests\Caster\DOMCasterTest::testCastModernDocumentType
TypeError: Cannot assign DOMNodeList to property Dom\Node::$childNodes of type Dom\NodeList
 
/home/runner/work/php-latest-builds/php-latest-builds/src/Symfony/Component/VarDumper/Caster/DOMCaster.php:190
/home/runner/work/php-latest-builds/php-latest-builds/src/Symfony/Component/VarDumper/Cloner/AbstractCloner.php:379
/home/runner/work/php-latest-builds/php-latest-builds/src/Symfony/Component/VarDumper/Cloner/VarCloner.php:127
/home/runner/work/php-latest-builds/php-latest-builds/src/Symfony/Component/VarDumper/Cloner/AbstractCloner.php:318
/home/runner/work/php-latest-builds/php-latest-builds/src/Symfony/Component/VarDumper/Test/VarDumperTestTrait.php:79
/home/runner/work/php-latest-builds/php-latest-builds/src/Symfony/Component/VarDumper/Test/VarDumperTestTrait.php:63
/home/runner/work/php-latest-builds/php-latest-builds/src/Symfony/Component/VarDumper/Tests/Caster/DOMCasterTest.php:235
/home/runner/work/php-latest-builds/php-latest-builds/.phpunit/phpunit-12-0/phpunit:104
/home/runner/work/php-latest-builds/php-latest-builds/vendor/symfony/phpunit-bridge/bin/simple-phpunit.php:458
/home/runner/work/php-latest-builds/php-latest-builds/vendor/symfony/phpunit-bridge/bin/simple-phpunit:13</error>
</testcase>

Metadata

Metadata

Labels

bugSomething isn't workinggood first issueGood for newcomershelp wantedExtra attention is needed

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions