Some of the testing I will need to do will require comparing a known array with the result I am getting from the functions I will be running.
For comparing arrays recursively:
- Does PHPUnit have an inbuilt function?
- Does someone here have some code they have constructed to share?
- Will this be something I will have to construct on my own?
Yes it does.
assertEquals()andassertNotEquals()documentation.Specifically:
Test Code:
[EDIT]
Here is the code for out of order aLists:
This test fails:
With message: