Open martinssipenko opened 4 years ago
That'd be brilliant. I didn't notice them. Good spot
@NoelDavies check out #27 would you be ok with such approach?
I'm wondering whats the idea behind BlackBoxTest, and why does it increment metrics 1100 times?
@NoelDavies I closed the initial PR and opened a new one - #28, it turned out the issue was in PHPUnit bug that got fixed in latest release.
I added a review. Once those are looked at we'll push up :D
I noticed that after merging #25 there are some tests that produce warnings. By looking at the whole test suite closed I noticed that abstract classes are being used in tests which I think makes the test suite hard to understand. It also causes some tests cases not being executed, more particularly the ones that use
@dataProvider
.I'd like to propose to refactor the test suite so that abstract classes are not used anymore. This however means that we have duplicate code (copy all test cases into each adapters test class) or use a test method per adapter type and move real assertions to protected methods.
@NoelDavies whats you view on this? I'm happy to submit a example PR if that would help.