SymfonyDependencyInjectionTest icon indicating copy to clipboard operation
SymfonyDependencyInjectionTest copied to clipboard

Check identity of the Container parameter

Open Zales0123 opened this issue 5 years ago • 0 comments

Hello!

Thank you for the great library - it's a blessing while testing container configuration 🖖

I've encountered a problem when trying to test the compiler pass, that is setting an array parameter in the container. Its form was similar to ['key1' => 'value1', 'key2' => 'value2']. The order of key and elements was crucial. Using IsEqual constraint did not check it (the same case for a different type, e.g. '123' vs. 123).

Instead of the proposed solution, I also considered providing a new PhpUnit/*Constraint, but it seems like a little overcomplication.

Let me know if this change is something you would accept :) Thank you one more time 🚀

Zales0123 avatar Jun 10 '20 14:06 Zales0123