Open suin opened 5 years ago
I am trying to solve this issue, but I am troubled with a different error...
Symfony\Component\DependencyInjection\Exception\RuntimeException : Cannot autowire service "Symplify\TokenRunner\DocBlock\DescriptionAnalyzer": argument "$typeNodeAnalyzer" of method "__construct()" references class "Symplify\BetterPhpDocParser\PhpDocParser\TypeNodeAnalyzer" but no such service exists.
Testing started at 10:38 ...
/usr/local/opt/php@7.1/bin/php /Volumes/dev/php/vendor/phpunit/phpunit/phpunit --configuration /Volumes/dev/php/phpunit.xml --filter "/(::testName)( .*)?$/" SymplifyCsFixer\ContainerTest /Volumes/dev/php/packages/symplify-cs-fixer/tests/ContainerTest.php --teamcity
PHPUnit 7.3.5 by Sebastian Bergmann and contributors.
Runtime: PHP 7.1.29 with Xdebug 2.6.1
Configuration: /Volumes/dev/php/phpunit.xml
Symfony\Component\DependencyInjection\Exception\RuntimeException : Cannot autowire service "Symplify\TokenRunner\DocBlock\DescriptionAnalyzer": argument "$typeNodeAnalyzer" of method "__construct()" references class "Symplify\BetterPhpDocParser\PhpDocParser\TypeNodeAnalyzer" but no such service exists.
/Volumes/dev/php/vendor/symfony/dependency-injection/Compiler/DefinitionErrorExceptionPass.php:54
/Volumes/dev/php/vendor/symfony/dependency-injection/Compiler/AbstractRecursivePass.php:82
/Volumes/dev/php/vendor/symfony/dependency-injection/Compiler/DefinitionErrorExceptionPass.php:32
/Volumes/dev/php/vendor/symfony/dependency-injection/Compiler/AbstractRecursivePass.php:46
/Volumes/dev/php/vendor/symfony/dependency-injection/Compiler/Compiler.php:95
/Volumes/dev/php/vendor/symfony/dependency-injection/ContainerBuilder.php:750
/Volumes/dev/php/vendor/symfony/http-kernel/Kernel.php:544
/Volumes/dev/php/vendor/symfony/http-kernel/Kernel.php:133
/Volumes/dev/php/packages/symplify-cs-fixer/src/Container/Container.php:46
/Volumes/dev/php/packages/symplify-cs-fixer/src/Container/Container.php:62
/Volumes/dev/php/packages/symplify-cs-fixer/src/Container/Container.php:56
/Volumes/dev/php/packages/symplify-cs-fixer/tests/ContainerTest.php:15
Time: 2 seconds, Memory: 14.00 MB
ERRORS!
Tests: 1, Assertions: 0, Errors: 1.
Generating code coverage report in Clover XML format ... done
Generating code coverage report in HTML format ... done
Code Coverage Report Summary:
Classes: 0.00% (0/23)
Methods: 0.00% (0/93)
Lines: 0.00% (0/277)
Process finished with exit code 2
I have pushed the reproductive code as https://github.com/suin/php/commit/4b6802e2a3d96cd0dfd87678bd3d353f7c626a2a
Expected behavior
Unit testing will pass.
Actual behavior
Unit testing fails.
Steps to reproduce actual behavior
Test result outputs errors like:
The error detail can be seen at the Travis CI result