thephpleague / factory-muffin

Enables the rapid creation of objects for testing
https://factory-muffin.thephpleague.com/
MIT License
532 stars 72 forks source link

Unresolved composer.json requirements when action according contribution guideline #481

Closed overflowingd closed 1 year ago

overflowingd commented 2 years ago

I tried to setup factory-muffin according this Contribution Guidelines

But got an error:

➜  factory-muffin git:(master) ✗ composer install
No composer.lock file present. Updating dependencies to latest instead of installing from lock file. See https://getcomposer.org/install for more information.
Loading composer repositories with package information
Updating dependencies
Lock file operations: 61 installs, 0 updates, 0 removals
  - Locking doctrine/cache (2.1.1)
  - Locking doctrine/collections (1.6.8)
  - Locking doctrine/common (3.2.1)
  - Locking doctrine/dbal (3.3.0)
  - Locking doctrine/deprecations (v0.5.3)
  - Locking doctrine/event-manager (1.1.1)
  - Locking doctrine/inflector (2.0.4)
  - Locking doctrine/instantiator (1.4.0)
  - Locking doctrine/lexer (1.2.2)
  - Locking doctrine/orm (2.11.0)
  - Locking doctrine/persistence (2.3.0)
  - Locking fakerphp/faker (v1.18.0)
  - Locking illuminate/container (v6.20.44)
  - Locking illuminate/contracts (v6.20.44)
  - Locking illuminate/database (v6.20.44)
  - Locking illuminate/support (v6.20.44)
  - Locking league/factory-muffin-faker (v2.3.0)
  - Locking myclabs/deep-copy (1.10.2)
  - Locking nesbot/carbon (2.56.0)
  - Locking phar-io/manifest (1.0.3)
  - Locking phar-io/version (2.0.1)
  - Locking phpdocumentor/reflection-common (2.2.0)
  - Locking phpdocumentor/reflection-docblock (5.3.0)
  - Locking phpdocumentor/type-resolver (1.6.0)
  - Locking phpspec/prophecy (v1.15.0)
  - Locking phpunit/php-code-coverage (6.1.4)
  - Locking phpunit/php-file-iterator (2.0.5)
  - Locking phpunit/php-text-template (1.2.1)
  - Locking phpunit/php-timer (2.1.3)
  - Locking phpunit/php-token-stream (3.1.3)
  - Locking phpunit/phpunit (7.5.20)
  - Locking psr/cache (1.0.1)
  - Locking psr/container (1.1.2)
  - Locking psr/log (1.1.4)
  - Locking psr/simple-cache (1.0.1)
  - Locking sebastian/code-unit-reverse-lookup (1.0.2)
  - Locking sebastian/comparator (3.0.3)
  - Locking sebastian/diff (3.0.3)
  - Locking sebastian/environment (4.2.4)
  - Locking sebastian/exporter (3.1.4)
  - Locking sebastian/global-state (2.0.0)
  - Locking sebastian/object-enumerator (3.0.4)
  - Locking sebastian/object-reflector (1.1.2)
  - Locking sebastian/recursion-context (3.0.1)
  - Locking sebastian/resource-operations (2.0.2)
  - Locking sebastian/version (2.0.1)
  - Locking symfony/console (v5.4.3)
  - Locking symfony/deprecation-contracts (v2.5.0)
  - Locking symfony/polyfill-ctype (v1.24.0)
  - Locking symfony/polyfill-intl-grapheme (v1.24.0)
  - Locking symfony/polyfill-intl-normalizer (v1.24.0)
  - Locking symfony/polyfill-mbstring (v1.24.0)
  - Locking symfony/polyfill-php72 (v1.24.0)
  - Locking symfony/polyfill-php73 (v1.24.0)
  - Locking symfony/polyfill-php80 (v1.24.0)
  - Locking symfony/service-contracts (v2.5.0)
  - Locking symfony/string (v5.4.3)
  - Locking symfony/translation (v5.4.3)
  - Locking symfony/translation-contracts (v2.5.0)
  - Locking theseer/tokenizer (1.2.1)
  - Locking webmozart/assert (1.10.0)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 61 installs, 0 updates, 0 removals
  - Installing symfony/polyfill-php80 (v1.24.0): Extracting archive
  - Installing symfony/polyfill-php72 (v1.24.0): Extracting archive
  - Installing symfony/polyfill-mbstring (v1.24.0): Extracting archive
  - Installing symfony/polyfill-intl-normalizer (v1.24.0): Extracting archive
  - Installing symfony/polyfill-intl-grapheme (v1.24.0): Extracting archive
  - Installing symfony/polyfill-ctype (v1.24.0): Extracting archive
  - Installing symfony/string (v5.4.3): Extracting archive
  - Installing symfony/deprecation-contracts (v2.5.0): Extracting archive
  - Installing psr/container (1.1.2): Extracting archive
  - Installing symfony/service-contracts (v2.5.0): Extracting archive
  - Installing symfony/polyfill-php73 (v1.24.0): Extracting archive
  - Installing symfony/console (v5.4.3): Extracting archive
  - Installing psr/cache (1.0.1): Extracting archive
  - Installing doctrine/event-manager (1.1.1): Extracting archive
  - Installing doctrine/deprecations (v0.5.3): Extracting archive
  - Installing doctrine/collections (1.6.8): Extracting archive
  - Installing doctrine/cache (2.1.1): Extracting archive
  - Installing doctrine/persistence (2.3.0): Extracting archive
  - Installing doctrine/lexer (1.2.2): Extracting archive
  - Installing doctrine/instantiator (1.4.0): Extracting archive
  - Installing doctrine/inflector (2.0.4): Extracting archive
  - Installing psr/log (1.1.4): Extracting archive
  - Installing doctrine/dbal (3.3.0): Extracting archive
  - Installing doctrine/common (3.2.1): Extracting archive
  - Installing doctrine/orm (2.11.0): Extracting archive
  - Installing symfony/translation-contracts (v2.5.0): Extracting archive
  - Installing symfony/translation (v5.4.3): Extracting archive
  - Installing nesbot/carbon (2.56.0): Extracting archive
  - Installing psr/simple-cache (1.0.1): Extracting archive
  - Installing illuminate/contracts (v6.20.44): Extracting archive
  - Installing illuminate/support (v6.20.44): Extracting archive
  - Installing illuminate/container (v6.20.44): Extracting archive
  - Installing illuminate/database (v6.20.44): Extracting archive
  - Installing fakerphp/faker (v1.18.0): Extracting archive
  - Installing league/factory-muffin-faker (v2.3.0): Extracting archive
  - Installing webmozart/assert (1.10.0): Extracting archive
  - Installing phpdocumentor/reflection-common (2.2.0): Extracting archive
  - Installing phpdocumentor/type-resolver (1.6.0): Extracting archive
  - Installing phpdocumentor/reflection-docblock (5.3.0): Extracting archive
  - Installing phpunit/php-token-stream (3.1.3): Extracting archive
  - Installing sebastian/version (2.0.1): Extracting archive
  - Installing sebastian/resource-operations (2.0.2): Extracting archive
  - Installing sebastian/recursion-context (3.0.1): Extracting archive
  - Installing sebastian/object-reflector (1.1.2): Extracting archive
  - Installing sebastian/object-enumerator (3.0.4): Extracting archive
  - Installing sebastian/global-state (2.0.0): Extracting archive
  - Installing sebastian/exporter (3.1.4): Extracting archive
  - Installing sebastian/environment (4.2.4): Extracting archive
  - Installing sebastian/diff (3.0.3): Extracting archive
  - Installing sebastian/comparator (3.0.3): Extracting archive
  - Installing phpunit/php-timer (2.1.3): Extracting archive
  - Installing phpunit/php-text-template (1.2.1): Extracting archive
  - Installing phpunit/php-file-iterator (2.0.5): Extracting archive
  - Installing theseer/tokenizer (1.2.1): Extracting archive
  - Installing sebastian/code-unit-reverse-lookup (1.0.2): Extracting archive
  - Installing phpunit/php-code-coverage (6.1.4): Extracting archive
  - Installing phpspec/prophecy (v1.15.0): Extracting archive
  - Installing phar-io/version (2.0.1): Extracting archive
  - Installing phar-io/manifest (1.0.3): Extracting archive
  - Installing myclabs/deep-copy (1.10.2): Extracting archive
  - Installing phpunit/phpunit (7.5.20): Extracting archive
24 package suggestions were added by new dependencies, use `composer suggest` to see details.
Package phpunit/php-token-stream is abandoned, you should avoid using it. No replacement was suggested.
Generating autoload files
36 packages you are using are looking for funding.
Use the `composer fund` command to find out more!

➜  factory-muffin git:(master) ✗ ./vendor/bin/phpunit 
PHPUnit 7.5.20 by Sebastian Bergmann and contributors.

Runtime:       PHP 7.4.27
Configuration: /Users/edpth/Dev/github.com/ovfldpth/factory-muffin/phpunit.xml

..............................EEEEEE............................. 65 / 66 ( 98%)
.                                                                 66 / 66 (100%)

Time: 222 ms, Memory: 12.00 MB

There were 6 errors:

1) DoctrineTest::testNumberOfCats
RuntimeException: Setup tool cannot configure caches without doctrine/cache 1.11 or symfony/cache. Please add an explicit dependency to either library. in /Users/edpth/Dev/github.com/ovfldpth/factory-muffin/vendor/doctrine/orm/lib/Doctrine/ORM/Tools/Setup.php:193
Stack trace:
#0 /Users/edpth/Dev/github.com/ovfldpth/factory-muffin/vendor/doctrine/orm/lib/Doctrine/ORM/Tools/Setup.php(169): Doctrine\ORM\Tools\Setup::createCacheInstance(true, NULL)
#1 /Users/edpth/Dev/github.com/ovfldpth/factory-muffin/vendor/doctrine/orm/lib/Doctrine/ORM/Tools/Setup.php(153): Doctrine\ORM\Tools\Setup::createCacheConfiguration(true, '/var/folders/hp...', NULL)
#2 /Users/edpth/Dev/github.com/ovfldpth/factory-muffin/vendor/doctrine/orm/lib/Doctrine/ORM/Tools/Setup.php(74): Doctrine\ORM\Tools\Setup::createConfiguration(true, '/var/folders/hp...', NULL)
#3 /Users/edpth/Dev/github.com/ovfldpth/factory-muffin/tests/DoctrineTest.php(38): Doctrine\ORM\Tools\Setup::createAnnotationMetadataConfiguration(Array, true)
#4 /Users/edpth/Dev/github.com/ovfldpth/factory-muffin/vendor/phpunit/phpunit/src/Framework/TestSuite.php(703): DoctrineTest::setupBeforeClass()
#5 /Users/edpth/Dev/github.com/ovfldpth/factory-muffin/vendor/phpunit/phpunit/src/Framework/TestSuite.php(746): PHPUnit\Framework\TestSuite->run(Object(PHPUnit\Framework\TestResult))
#6 /Users/edpth/Dev/github.com/ovfldpth/factory-muffin/vendor/phpunit/phpunit/src/TextUI/TestRunner.php(652): PHPUnit\Framework\TestSuite->run(Object(PHPUnit\Framework\TestResult))
#7 /Users/edpth/Dev/github.com/ovfldpth/factory-muffin/vendor/phpunit/phpunit/src/TextUI/Command.php(206): PHPUnit\TextUI\TestRunner->doRun(Object(PHPUnit\Framework\TestSuite), Array, true)
#8 /Users/edpth/Dev/github.com/ovfldpth/factory-muffin/vendor/phpunit/phpunit/src/TextUI/Command.php(162): PHPUnit\TextUI\Command->run(Array, true)
#9 /Users/edpth/Dev/github.com/ovfldpth/factory-muffin/vendor/phpunit/phpunit/phpunit(61): PHPUnit\TextUI\Command::main()
#10 {main}
2) DoctrineTest::testNumberOfCatOwners
RuntimeException: Setup tool cannot configure caches without doctrine/cache 1.11 or symfony/cache. Please add an explicit dependency to either library. in /Users/edpth/Dev/github.com/ovfldpth/factory-muffin/vendor/doctrine/orm/lib/Doctrine/ORM/Tools/Setup.php:193
Stack trace:
#0 /Users/edpth/Dev/github.com/ovfldpth/factory-muffin/vendor/doctrine/orm/lib/Doctrine/ORM/Tools/Setup.php(169): Doctrine\ORM\Tools\Setup::createCacheInstance(true, NULL)
#1 /Users/edpth/Dev/github.com/ovfldpth/factory-muffin/vendor/doctrine/orm/lib/Doctrine/ORM/Tools/Setup.php(153): Doctrine\ORM\Tools\Setup::createCacheConfiguration(true, '/var/folders/hp...', NULL)
#2 /Users/edpth/Dev/github.com/ovfldpth/factory-muffin/vendor/doctrine/orm/lib/Doctrine/ORM/Tools/Setup.php(74): Doctrine\ORM\Tools\Setup::createConfiguration(true, '/var/folders/hp...', NULL)
#3 /Users/edpth/Dev/github.com/ovfldpth/factory-muffin/tests/DoctrineTest.php(38): Doctrine\ORM\Tools\Setup::createAnnotationMetadataConfiguration(Array, true)
#4 /Users/edpth/Dev/github.com/ovfldpth/factory-muffin/vendor/phpunit/phpunit/src/Framework/TestSuite.php(703): DoctrineTest::setupBeforeClass()
#5 /Users/edpth/Dev/github.com/ovfldpth/factory-muffin/vendor/phpunit/phpunit/src/Framework/TestSuite.php(746): PHPUnit\Framework\TestSuite->run(Object(PHPUnit\Framework\TestResult))
#6 /Users/edpth/Dev/github.com/ovfldpth/factory-muffin/vendor/phpunit/phpunit/src/TextUI/TestRunner.php(652): PHPUnit\Framework\TestSuite->run(Object(PHPUnit\Framework\TestResult))
#7 /Users/edpth/Dev/github.com/ovfldpth/factory-muffin/vendor/phpunit/phpunit/src/TextUI/Command.php(206): PHPUnit\TextUI\TestRunner->doRun(Object(PHPUnit\Framework\TestSuite), Array, true)
#8 /Users/edpth/Dev/github.com/ovfldpth/factory-muffin/vendor/phpunit/phpunit/src/TextUI/Command.php(162): PHPUnit\TextUI\Command->run(Array, true)
#9 /Users/edpth/Dev/github.com/ovfldpth/factory-muffin/vendor/phpunit/phpunit/phpunit(61): PHPUnit\TextUI\Command::main()
#10 {main}
3) DoctrineTest::testUserProperties
RuntimeException: Setup tool cannot configure caches without doctrine/cache 1.11 or symfony/cache. Please add an explicit dependency to either library. in /Users/edpth/Dev/github.com/ovfldpth/factory-muffin/vendor/doctrine/orm/lib/Doctrine/ORM/Tools/Setup.php:193
Stack trace:
#0 /Users/edpth/Dev/github.com/ovfldpth/factory-muffin/vendor/doctrine/orm/lib/Doctrine/ORM/Tools/Setup.php(169): Doctrine\ORM\Tools\Setup::createCacheInstance(true, NULL)
#1 /Users/edpth/Dev/github.com/ovfldpth/factory-muffin/vendor/doctrine/orm/lib/Doctrine/ORM/Tools/Setup.php(153): Doctrine\ORM\Tools\Setup::createCacheConfiguration(true, '/var/folders/hp...', NULL)
#2 /Users/edpth/Dev/github.com/ovfldpth/factory-muffin/vendor/doctrine/orm/lib/Doctrine/ORM/Tools/Setup.php(74): Doctrine\ORM\Tools\Setup::createConfiguration(true, '/var/folders/hp...', NULL)
#3 /Users/edpth/Dev/github.com/ovfldpth/factory-muffin/tests/DoctrineTest.php(38): Doctrine\ORM\Tools\Setup::createAnnotationMetadataConfiguration(Array, true)
#4 /Users/edpth/Dev/github.com/ovfldpth/factory-muffin/vendor/phpunit/phpunit/src/Framework/TestSuite.php(703): DoctrineTest::setupBeforeClass()
#5 /Users/edpth/Dev/github.com/ovfldpth/factory-muffin/vendor/phpunit/phpunit/src/Framework/TestSuite.php(746): PHPUnit\Framework\TestSuite->run(Object(PHPUnit\Framework\TestResult))
#6 /Users/edpth/Dev/github.com/ovfldpth/factory-muffin/vendor/phpunit/phpunit/src/TextUI/TestRunner.php(652): PHPUnit\Framework\TestSuite->run(Object(PHPUnit\Framework\TestResult))
#7 /Users/edpth/Dev/github.com/ovfldpth/factory-muffin/vendor/phpunit/phpunit/src/TextUI/Command.php(206): PHPUnit\TextUI\TestRunner->doRun(Object(PHPUnit\Framework\TestSuite), Array, true)
#8 /Users/edpth/Dev/github.com/ovfldpth/factory-muffin/vendor/phpunit/phpunit/src/TextUI/Command.php(162): PHPUnit\TextUI\Command->run(Array, true)
#9 /Users/edpth/Dev/github.com/ovfldpth/factory-muffin/vendor/phpunit/phpunit/phpunit(61): PHPUnit\TextUI\Command::main()
#10 {main}
4) DoctrineTest::testCatProperties
RuntimeException: Setup tool cannot configure caches without doctrine/cache 1.11 or symfony/cache. Please add an explicit dependency to either library. in /Users/edpth/Dev/github.com/ovfldpth/factory-muffin/vendor/doctrine/orm/lib/Doctrine/ORM/Tools/Setup.php:193
Stack trace:
#0 /Users/edpth/Dev/github.com/ovfldpth/factory-muffin/vendor/doctrine/orm/lib/Doctrine/ORM/Tools/Setup.php(169): Doctrine\ORM\Tools\Setup::createCacheInstance(true, NULL)
#1 /Users/edpth/Dev/github.com/ovfldpth/factory-muffin/vendor/doctrine/orm/lib/Doctrine/ORM/Tools/Setup.php(153): Doctrine\ORM\Tools\Setup::createCacheConfiguration(true, '/var/folders/hp...', NULL)
#2 /Users/edpth/Dev/github.com/ovfldpth/factory-muffin/vendor/doctrine/orm/lib/Doctrine/ORM/Tools/Setup.php(74): Doctrine\ORM\Tools\Setup::createConfiguration(true, '/var/folders/hp...', NULL)
#3 /Users/edpth/Dev/github.com/ovfldpth/factory-muffin/tests/DoctrineTest.php(38): Doctrine\ORM\Tools\Setup::createAnnotationMetadataConfiguration(Array, true)
#4 /Users/edpth/Dev/github.com/ovfldpth/factory-muffin/vendor/phpunit/phpunit/src/Framework/TestSuite.php(703): DoctrineTest::setupBeforeClass()
#5 /Users/edpth/Dev/github.com/ovfldpth/factory-muffin/vendor/phpunit/phpunit/src/Framework/TestSuite.php(746): PHPUnit\Framework\TestSuite->run(Object(PHPUnit\Framework\TestResult))
#6 /Users/edpth/Dev/github.com/ovfldpth/factory-muffin/vendor/phpunit/phpunit/src/TextUI/TestRunner.php(652): PHPUnit\Framework\TestSuite->run(Object(PHPUnit\Framework\TestResult))
#7 /Users/edpth/Dev/github.com/ovfldpth/factory-muffin/vendor/phpunit/phpunit/src/TextUI/Command.php(206): PHPUnit\TextUI\TestRunner->doRun(Object(PHPUnit\Framework\TestSuite), Array, true)
#8 /Users/edpth/Dev/github.com/ovfldpth/factory-muffin/vendor/phpunit/phpunit/src/TextUI/Command.php(162): PHPUnit\TextUI\Command->run(Array, true)
#9 /Users/edpth/Dev/github.com/ovfldpth/factory-muffin/vendor/phpunit/phpunit/phpunit(61): PHPUnit\TextUI\Command::main()
#10 {main}
5) DoctrineTest::testSavedObjects
RuntimeException: Setup tool cannot configure caches without doctrine/cache 1.11 or symfony/cache. Please add an explicit dependency to either library. in /Users/edpth/Dev/github.com/ovfldpth/factory-muffin/vendor/doctrine/orm/lib/Doctrine/ORM/Tools/Setup.php:193
Stack trace:
#0 /Users/edpth/Dev/github.com/ovfldpth/factory-muffin/vendor/doctrine/orm/lib/Doctrine/ORM/Tools/Setup.php(169): Doctrine\ORM\Tools\Setup::createCacheInstance(true, NULL)
#1 /Users/edpth/Dev/github.com/ovfldpth/factory-muffin/vendor/doctrine/orm/lib/Doctrine/ORM/Tools/Setup.php(153): Doctrine\ORM\Tools\Setup::createCacheConfiguration(true, '/var/folders/hp...', NULL)
#2 /Users/edpth/Dev/github.com/ovfldpth/factory-muffin/vendor/doctrine/orm/lib/Doctrine/ORM/Tools/Setup.php(74): Doctrine\ORM\Tools\Setup::createConfiguration(true, '/var/folders/hp...', NULL)
#3 /Users/edpth/Dev/github.com/ovfldpth/factory-muffin/tests/DoctrineTest.php(38): Doctrine\ORM\Tools\Setup::createAnnotationMetadataConfiguration(Array, true)
#4 /Users/edpth/Dev/github.com/ovfldpth/factory-muffin/vendor/phpunit/phpunit/src/Framework/TestSuite.php(703): DoctrineTest::setupBeforeClass()
#5 /Users/edpth/Dev/github.com/ovfldpth/factory-muffin/vendor/phpunit/phpunit/src/Framework/TestSuite.php(746): PHPUnit\Framework\TestSuite->run(Object(PHPUnit\Framework\TestResult))
#6 /Users/edpth/Dev/github.com/ovfldpth/factory-muffin/vendor/phpunit/phpunit/src/TextUI/TestRunner.php(652): PHPUnit\Framework\TestSuite->run(Object(PHPUnit\Framework\TestResult))
#7 /Users/edpth/Dev/github.com/ovfldpth/factory-muffin/vendor/phpunit/phpunit/src/TextUI/Command.php(206): PHPUnit\TextUI\TestRunner->doRun(Object(PHPUnit\Framework\TestSuite), Array, true)
#8 /Users/edpth/Dev/github.com/ovfldpth/factory-muffin/vendor/phpunit/phpunit/src/TextUI/Command.php(162): PHPUnit\TextUI\Command->run(Array, true)
#9 /Users/edpth/Dev/github.com/ovfldpth/factory-muffin/vendor/phpunit/phpunit/phpunit(61): PHPUnit\TextUI\Command::main()
#10 {main}
6) DoctrineTest::testDeleteSaved
RuntimeException: Setup tool cannot configure caches without doctrine/cache 1.11 or symfony/cache. Please add an explicit dependency to either library. in /Users/edpth/Dev/github.com/ovfldpth/factory-muffin/vendor/doctrine/orm/lib/Doctrine/ORM/Tools/Setup.php:193
Stack trace:
#0 /Users/edpth/Dev/github.com/ovfldpth/factory-muffin/vendor/doctrine/orm/lib/Doctrine/ORM/Tools/Setup.php(169): Doctrine\ORM\Tools\Setup::createCacheInstance(true, NULL)
#1 /Users/edpth/Dev/github.com/ovfldpth/factory-muffin/vendor/doctrine/orm/lib/Doctrine/ORM/Tools/Setup.php(153): Doctrine\ORM\Tools\Setup::createCacheConfiguration(true, '/var/folders/hp...', NULL)
#2 /Users/edpth/Dev/github.com/ovfldpth/factory-muffin/vendor/doctrine/orm/lib/Doctrine/ORM/Tools/Setup.php(74): Doctrine\ORM\Tools\Setup::createConfiguration(true, '/var/folders/hp...', NULL)
#3 /Users/edpth/Dev/github.com/ovfldpth/factory-muffin/tests/DoctrineTest.php(38): Doctrine\ORM\Tools\Setup::createAnnotationMetadataConfiguration(Array, true)
#4 /Users/edpth/Dev/github.com/ovfldpth/factory-muffin/vendor/phpunit/phpunit/src/Framework/TestSuite.php(703): DoctrineTest::setupBeforeClass()
#5 /Users/edpth/Dev/github.com/ovfldpth/factory-muffin/vendor/phpunit/phpunit/src/Framework/TestSuite.php(746): PHPUnit\Framework\TestSuite->run(Object(PHPUnit\Framework\TestResult))
#6 /Users/edpth/Dev/github.com/ovfldpth/factory-muffin/vendor/phpunit/phpunit/src/TextUI/TestRunner.php(652): PHPUnit\Framework\TestSuite->run(Object(PHPUnit\Framework\TestResult))
#7 /Users/edpth/Dev/github.com/ovfldpth/factory-muffin/vendor/phpunit/phpunit/src/TextUI/Command.php(206): PHPUnit\TextUI\TestRunner->doRun(Object(PHPUnit\Framework\TestSuite), Array, true)
#8 /Users/edpth/Dev/github.com/ovfldpth/factory-muffin/vendor/phpunit/phpunit/src/TextUI/Command.php(162): PHPUnit\TextUI\Command->run(Array, true)
#9 /Users/edpth/Dev/github.com/ovfldpth/factory-muffin/vendor/phpunit/phpunit/phpunit(61): PHPUnit\TextUI\Command::main()
#10 {main}
ERRORS!
Tests: 66, Assertions: 217, Errors: 6.

Here is a reason of error:

RuntimeException: Setup tool cannot configure caches without doctrine/cache 1.11 or symfony/cache. Please add an explicit dependency to either library. in /Users/edpth/Dev/github.com/ovfldpth/factory-muffin/vendor/doctrine/orm/lib/Doctrine/ORM/Tools/Setup.php:193

After this I tried to require symfony/cache with:

composer require --dev symfony/cache 

And got a new error running phpunit:

➜  factory-muffin git:(master) ✗ ./vendor/bin/phpunit                
PHPUnit 7.5.20 by Sebastian Bergmann and contributors.

Runtime:       PHP 7.4.27
Configuration: /Users/edpth/Dev/github.com/ovfldpth/factory-muffin/phpunit.xml

..............................EEEEEE............................. 65 / 66 ( 98%)
.                                                                 66 / 66 (100%)

Time: 119 ms, Memory: 14.00 MB

There were 6 errors:

1) DoctrineTest::testNumberOfCats
Error: Class 'Doctrine\Common\Annotations\AnnotationRegistry' not found in /Users/edpth/Dev/github.com/ovfldpth/factory-muffin/vendor/doctrine/orm/lib/Doctrine/ORM/Configuration.php:165
Stack trace:
#0 /Users/edpth/Dev/github.com/ovfldpth/factory-muffin/vendor/doctrine/orm/lib/Doctrine/ORM/Tools/Setup.php(75): Doctrine\ORM\Configuration->newDefaultAnnotationDriver(Array, true)
#1 /Users/edpth/Dev/github.com/ovfldpth/factory-muffin/tests/DoctrineTest.php(38): Doctrine\ORM\Tools\Setup::createAnnotationMetadataConfiguration(Array, true)
#2 /Users/edpth/Dev/github.com/ovfldpth/factory-muffin/vendor/phpunit/phpunit/src/Framework/TestSuite.php(703): DoctrineTest::setupBeforeClass()
#3 /Users/edpth/Dev/github.com/ovfldpth/factory-muffin/vendor/phpunit/phpunit/src/Framework/TestSuite.php(746): PHPUnit\Framework\TestSuite->run(Object(PHPUnit\Framework\TestResult))
#4 /Users/edpth/Dev/github.com/ovfldpth/factory-muffin/vendor/phpunit/phpunit/src/TextUI/TestRunner.php(652): PHPUnit\Framework\TestSuite->run(Object(PHPUnit\Framework\TestResult))
#5 /Users/edpth/Dev/github.com/ovfldpth/factory-muffin/vendor/phpunit/phpunit/src/TextUI/Command.php(206): PHPUnit\TextUI\TestRunner->doRun(Object(PHPUnit\Framework\TestSuite), Array, true)
#6 /Users/edpth/Dev/github.com/ovfldpth/factory-muffin/vendor/phpunit/phpunit/src/TextUI/Command.php(162): PHPUnit\TextUI\Command->run(Array, true)
#7 /Users/edpth/Dev/github.com/ovfldpth/factory-muffin/vendor/phpunit/phpunit/phpunit(61): PHPUnit\TextUI\Command::main()
#8 {main}
2) DoctrineTest::testNumberOfCatOwners
Error: Class 'Doctrine\Common\Annotations\AnnotationRegistry' not found in /Users/edpth/Dev/github.com/ovfldpth/factory-muffin/vendor/doctrine/orm/lib/Doctrine/ORM/Configuration.php:165
Stack trace:
#0 /Users/edpth/Dev/github.com/ovfldpth/factory-muffin/vendor/doctrine/orm/lib/Doctrine/ORM/Tools/Setup.php(75): Doctrine\ORM\Configuration->newDefaultAnnotationDriver(Array, true)
#1 /Users/edpth/Dev/github.com/ovfldpth/factory-muffin/tests/DoctrineTest.php(38): Doctrine\ORM\Tools\Setup::createAnnotationMetadataConfiguration(Array, true)
#2 /Users/edpth/Dev/github.com/ovfldpth/factory-muffin/vendor/phpunit/phpunit/src/Framework/TestSuite.php(703): DoctrineTest::setupBeforeClass()
#3 /Users/edpth/Dev/github.com/ovfldpth/factory-muffin/vendor/phpunit/phpunit/src/Framework/TestSuite.php(746): PHPUnit\Framework\TestSuite->run(Object(PHPUnit\Framework\TestResult))
#4 /Users/edpth/Dev/github.com/ovfldpth/factory-muffin/vendor/phpunit/phpunit/src/TextUI/TestRunner.php(652): PHPUnit\Framework\TestSuite->run(Object(PHPUnit\Framework\TestResult))
#5 /Users/edpth/Dev/github.com/ovfldpth/factory-muffin/vendor/phpunit/phpunit/src/TextUI/Command.php(206): PHPUnit\TextUI\TestRunner->doRun(Object(PHPUnit\Framework\TestSuite), Array, true)
#6 /Users/edpth/Dev/github.com/ovfldpth/factory-muffin/vendor/phpunit/phpunit/src/TextUI/Command.php(162): PHPUnit\TextUI\Command->run(Array, true)
#7 /Users/edpth/Dev/github.com/ovfldpth/factory-muffin/vendor/phpunit/phpunit/phpunit(61): PHPUnit\TextUI\Command::main()
#8 {main}
3) DoctrineTest::testUserProperties
Error: Class 'Doctrine\Common\Annotations\AnnotationRegistry' not found in /Users/edpth/Dev/github.com/ovfldpth/factory-muffin/vendor/doctrine/orm/lib/Doctrine/ORM/Configuration.php:165
Stack trace:
#0 /Users/edpth/Dev/github.com/ovfldpth/factory-muffin/vendor/doctrine/orm/lib/Doctrine/ORM/Tools/Setup.php(75): Doctrine\ORM\Configuration->newDefaultAnnotationDriver(Array, true)
#1 /Users/edpth/Dev/github.com/ovfldpth/factory-muffin/tests/DoctrineTest.php(38): Doctrine\ORM\Tools\Setup::createAnnotationMetadataConfiguration(Array, true)
#2 /Users/edpth/Dev/github.com/ovfldpth/factory-muffin/vendor/phpunit/phpunit/src/Framework/TestSuite.php(703): DoctrineTest::setupBeforeClass()
#3 /Users/edpth/Dev/github.com/ovfldpth/factory-muffin/vendor/phpunit/phpunit/src/Framework/TestSuite.php(746): PHPUnit\Framework\TestSuite->run(Object(PHPUnit\Framework\TestResult))
#4 /Users/edpth/Dev/github.com/ovfldpth/factory-muffin/vendor/phpunit/phpunit/src/TextUI/TestRunner.php(652): PHPUnit\Framework\TestSuite->run(Object(PHPUnit\Framework\TestResult))
#5 /Users/edpth/Dev/github.com/ovfldpth/factory-muffin/vendor/phpunit/phpunit/src/TextUI/Command.php(206): PHPUnit\TextUI\TestRunner->doRun(Object(PHPUnit\Framework\TestSuite), Array, true)
#6 /Users/edpth/Dev/github.com/ovfldpth/factory-muffin/vendor/phpunit/phpunit/src/TextUI/Command.php(162): PHPUnit\TextUI\Command->run(Array, true)
#7 /Users/edpth/Dev/github.com/ovfldpth/factory-muffin/vendor/phpunit/phpunit/phpunit(61): PHPUnit\TextUI\Command::main()
#8 {main}
4) DoctrineTest::testCatProperties
Error: Class 'Doctrine\Common\Annotations\AnnotationRegistry' not found in /Users/edpth/Dev/github.com/ovfldpth/factory-muffin/vendor/doctrine/orm/lib/Doctrine/ORM/Configuration.php:165
Stack trace:
#0 /Users/edpth/Dev/github.com/ovfldpth/factory-muffin/vendor/doctrine/orm/lib/Doctrine/ORM/Tools/Setup.php(75): Doctrine\ORM\Configuration->newDefaultAnnotationDriver(Array, true)
#1 /Users/edpth/Dev/github.com/ovfldpth/factory-muffin/tests/DoctrineTest.php(38): Doctrine\ORM\Tools\Setup::createAnnotationMetadataConfiguration(Array, true)
#2 /Users/edpth/Dev/github.com/ovfldpth/factory-muffin/vendor/phpunit/phpunit/src/Framework/TestSuite.php(703): DoctrineTest::setupBeforeClass()
#3 /Users/edpth/Dev/github.com/ovfldpth/factory-muffin/vendor/phpunit/phpunit/src/Framework/TestSuite.php(746): PHPUnit\Framework\TestSuite->run(Object(PHPUnit\Framework\TestResult))
#4 /Users/edpth/Dev/github.com/ovfldpth/factory-muffin/vendor/phpunit/phpunit/src/TextUI/TestRunner.php(652): PHPUnit\Framework\TestSuite->run(Object(PHPUnit\Framework\TestResult))
#5 /Users/edpth/Dev/github.com/ovfldpth/factory-muffin/vendor/phpunit/phpunit/src/TextUI/Command.php(206): PHPUnit\TextUI\TestRunner->doRun(Object(PHPUnit\Framework\TestSuite), Array, true)
#6 /Users/edpth/Dev/github.com/ovfldpth/factory-muffin/vendor/phpunit/phpunit/src/TextUI/Command.php(162): PHPUnit\TextUI\Command->run(Array, true)
#7 /Users/edpth/Dev/github.com/ovfldpth/factory-muffin/vendor/phpunit/phpunit/phpunit(61): PHPUnit\TextUI\Command::main()
#8 {main}
5) DoctrineTest::testSavedObjects
Error: Class 'Doctrine\Common\Annotations\AnnotationRegistry' not found in /Users/edpth/Dev/github.com/ovfldpth/factory-muffin/vendor/doctrine/orm/lib/Doctrine/ORM/Configuration.php:165
Stack trace:
#0 /Users/edpth/Dev/github.com/ovfldpth/factory-muffin/vendor/doctrine/orm/lib/Doctrine/ORM/Tools/Setup.php(75): Doctrine\ORM\Configuration->newDefaultAnnotationDriver(Array, true)
#1 /Users/edpth/Dev/github.com/ovfldpth/factory-muffin/tests/DoctrineTest.php(38): Doctrine\ORM\Tools\Setup::createAnnotationMetadataConfiguration(Array, true)
#2 /Users/edpth/Dev/github.com/ovfldpth/factory-muffin/vendor/phpunit/phpunit/src/Framework/TestSuite.php(703): DoctrineTest::setupBeforeClass()
#3 /Users/edpth/Dev/github.com/ovfldpth/factory-muffin/vendor/phpunit/phpunit/src/Framework/TestSuite.php(746): PHPUnit\Framework\TestSuite->run(Object(PHPUnit\Framework\TestResult))
#4 /Users/edpth/Dev/github.com/ovfldpth/factory-muffin/vendor/phpunit/phpunit/src/TextUI/TestRunner.php(652): PHPUnit\Framework\TestSuite->run(Object(PHPUnit\Framework\TestResult))
#5 /Users/edpth/Dev/github.com/ovfldpth/factory-muffin/vendor/phpunit/phpunit/src/TextUI/Command.php(206): PHPUnit\TextUI\TestRunner->doRun(Object(PHPUnit\Framework\TestSuite), Array, true)
#6 /Users/edpth/Dev/github.com/ovfldpth/factory-muffin/vendor/phpunit/phpunit/src/TextUI/Command.php(162): PHPUnit\TextUI\Command->run(Array, true)
#7 /Users/edpth/Dev/github.com/ovfldpth/factory-muffin/vendor/phpunit/phpunit/phpunit(61): PHPUnit\TextUI\Command::main()
#8 {main}
6) DoctrineTest::testDeleteSaved
Error: Class 'Doctrine\Common\Annotations\AnnotationRegistry' not found in /Users/edpth/Dev/github.com/ovfldpth/factory-muffin/vendor/doctrine/orm/lib/Doctrine/ORM/Configuration.php:165
Stack trace:
#0 /Users/edpth/Dev/github.com/ovfldpth/factory-muffin/vendor/doctrine/orm/lib/Doctrine/ORM/Tools/Setup.php(75): Doctrine\ORM\Configuration->newDefaultAnnotationDriver(Array, true)
#1 /Users/edpth/Dev/github.com/ovfldpth/factory-muffin/tests/DoctrineTest.php(38): Doctrine\ORM\Tools\Setup::createAnnotationMetadataConfiguration(Array, true)
#2 /Users/edpth/Dev/github.com/ovfldpth/factory-muffin/vendor/phpunit/phpunit/src/Framework/TestSuite.php(703): DoctrineTest::setupBeforeClass()
#3 /Users/edpth/Dev/github.com/ovfldpth/factory-muffin/vendor/phpunit/phpunit/src/Framework/TestSuite.php(746): PHPUnit\Framework\TestSuite->run(Object(PHPUnit\Framework\TestResult))
#4 /Users/edpth/Dev/github.com/ovfldpth/factory-muffin/vendor/phpunit/phpunit/src/TextUI/TestRunner.php(652): PHPUnit\Framework\TestSuite->run(Object(PHPUnit\Framework\TestResult))
#5 /Users/edpth/Dev/github.com/ovfldpth/factory-muffin/vendor/phpunit/phpunit/src/TextUI/Command.php(206): PHPUnit\TextUI\TestRunner->doRun(Object(PHPUnit\Framework\TestSuite), Array, true)
#6 /Users/edpth/Dev/github.com/ovfldpth/factory-muffin/vendor/phpunit/phpunit/src/TextUI/Command.php(162): PHPUnit\TextUI\Command->run(Array, true)
#7 /Users/edpth/Dev/github.com/ovfldpth/factory-muffin/vendor/phpunit/phpunit/phpunit(61): PHPUnit\TextUI\Command::main()
#8 {main}
ERRORS!
Tests: 66, Assertions: 217, Errors: 6.

Which tell that: Error: Class 'Doctrine\Common\Annotations\AnnotationRegistry' not found

To resolve this I install additional package:

composer require --dev doctrine/annotations

So only after that I got an adequate result from a phpunit:

➜  factory-muffin git:(master) ✗ ./vendor/bin/phpunit 
PHPUnit 7.5.20 by Sebastian Bergmann and contributors.

Runtime:       PHP 7.4.27
Configuration: /Users/edpth/Dev/github.com/ovfldpth/factory-muffin/phpunit.xml

................................................................. 65 / 66 ( 98%)
.                                                                 66 / 66 (100%)

Time: 391 ms, Memory: 18.00 MB

OK (66 tests, 231 assertions)

Added a pull request to remove this experience.

overflowingd commented 2 years ago

Php version:

➜  factory-muffin git:(master) ✗ php --version      
PHP 7.4.27 (cli) (built: Dec 16 2021 18:14:46) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
    with Zend OPcache v7.4.27, Copyright (c), by Zend Technologies