lchrusciel / ApiTestCase

Handy PHPUnit test case for testing JSON APIs in your Symfony applications.
MIT License
410 stars 35 forks source link

Prevent a warning when installing the lib #151

Open dunglas opened 5 years ago

dunglas commented 5 years ago
Q A
Bug fix? yes
New feature? yes
BC breaks? yes
Related tickets n/a
License MIT

Prevents the following Flex warning when installing the library:

 Adding phpunit/phpunit as a dependency is discouraged in favor of Symfony's PHPUnit Bridge. 

  * Instead:
    1. Remove it now: composer remove --dev phpunit/phpunit
    2. Use Symfony's bridge: composer require --dev phpunit
lchrusciel commented 5 years ago

Thanks a lot Kevin! I want to take a look and do some refactor anyway around this, so I can pick it up

lchrusciel commented 5 years ago

I know, it took me a while, but I finally found some time to do something about it. Unfortunately, I wasn't able to force phpunit bridge to see ApiTestCase, because it is using its own composer autoload definition :(

lchrusciel commented 5 years ago

Ref. https://travis-ci.org/lchrusciel/ApiTestCase/jobs/564395812