Snippets tagged “phpunit”
2 snippets use this tag.
- Best practices to test protected methods with PHPUnitPHP
There are a few ways you can test protected methods using PHPUnit:
- PHPUnit: assert two arrays are equal, but order of elements not importantPHP
You can use the assertEqualsCanonicalizing or assertEqualsIgnoringCase methods to compare two arrays and ignore the order of the elements.