How-to articles, tricks, and solutions about PHPUNIT
Best practices to test protected methods with PHPUnit
There are a few ways you can test protected methods using PHPUnit:
PHPUnit: assert two arrays are equal, but order of elements not important
You can use the assertEqualsCanonicalizing or assertEqualsIgnoringCase methods to compare two arrays and ignore the order of the elements.