Skip to content

Ability to configure a container to inject dependencies in PHPat tests #298

Description

@garak

Question

I have a Symfony project with some tagged services, and I'd like to enforce that every class implementing a given interface has the expected tag applied in the container.

I was wondering if this could be currently feasible using phpat... I've read the documentation, checked the examples, and got an idea about how a custom rule is built, but in my specific case I'd need something where I could inject the container, which seems not possible to me.

Am I missing something? If not, do you think it could be implemented somehow in the future?
Or maybe you have some alternate suggestions about how could I enforce my costraint?

Thanks in advance

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions