Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[symplify-cs-fixer] No more compatibilities with easy-coding-standard#5.4.13 #2

Open
suin opened this issue May 22, 2019 · 1 comment

Comments

@suin
Copy link
Owner

suin commented May 22, 2019

Expected behavior

Unit testing will pass.

Actual behavior

Unit testing fails.

Steps to reproduce actual behavior

composer qa:test

Test result outputs errors like:

PHP Fatal error:  Uncaught Error: Class 'Symplify\EasyCodingStandard\DependencyInjection\ContainerFactory' not found in /home/travis/build/suin/php/packages/symplify-cs-fixer/src/Container/Container.php:22

The error detail can be seen at the Travis CI result

@suin
Copy link
Owner Author

suin commented May 22, 2019

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/[email protected]/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 4b6802e

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant