Skip to content

Usage of symfony/phpunit-bridge has broken downstream consumers (maybe?) #105

@asgrim

Description

@asgrim

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).

https://github.com/Roave/DoctrineSimpleCache/blob/9f908c7b707d36d56a4ab63d6979e93173b069bc/test/unit/CacheIntegrationTest.php#L6-L21

However, I note that the latest now uses a trait Symfony\Bridge\PhpUnit\SetUpTearDownTrait:

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions