suin / php

Monorepo of Suin's PHP works.
MIT License
1 stars 2 forks source link

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

Open suin opened 5 years ago

suin commented 5 years ago

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 commented 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