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?
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
testcan only have classes that end withfooorbarin the constructor, a class that end withfoobarwould make the test fail.Is there a way to do that?