-
Notifications
You must be signed in to change notification settings - Fork 34
Description
I tried updating to the latest of cache/integration-tests (since we use the Cache\IntegrationTests\SimpleCacheTest in our test suite to validate roave/doctrine-simplecache is compatible with other Simple Cache implementations).
However, I note that the latest now uses a trait Symfony\Bridge\PhpUnit\SetUpTearDownTrait:
integration-tests/src/SimpleCacheTest.php
Lines 16 to 20 in e023fbe
| use Symfony\Bridge\PhpUnit\SetUpTearDownTrait; | |
| abstract class SimpleCacheTest extends TestCase | |
| { | |
| use SetUpTearDownTrait; |
symfony/phpunit-bridge is only a require-dev dependency of cache/integration-tests so I had to add this manually. So I did composer require --dev symfony/phpunit-bridge which picked ^4.3... however looking through the tags at https://github.com/symfony/phpunit-bridge/tree/v4.3.5, this SetUpTearDownTrait doesn't seem to be included, even though it does exist in master.
Two queries here: why is symfony/phpunit-bridge required now for these integration tests? Why are we binding this library to a specific framework package, when this should be generic and apply to all frameworks? Secondly: if it really is necessary and never going to go away, how can I resolve this dependency mess? It's really unclear and confusing what symfony/phpunit-bridge serves, and why it even exists here :/ plz send halp 😁 thank you!