There are a few ways you can test protected methods using PHPUnit:
You can use the assertEqualsCanonicalizing or assertEqualsIgnoringCase methods to compare two arrays and ignore the order of the elements.