Skip to content

How to check that dependencies injected in the constructor of classes only match certain conditions? #169

@dvdciri

Description

@dvdciri

I'm looking for a way to check that all classes (that match certain conditions) can have only certain dependencies injected in the constructor.

i.e. All classes that end with test can only have classes that end with foo or bar in the constructor, a class that end with foobar would make the test fail.

Is there a way to do that?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions