Created
August 29, 2011 18:49
-
-
Save syranez/1179100 to your computer and use it in GitHub Desktop.
CompareArray-Verwendung
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 $comparer = new fcmsUnit_CompareArray(); | |
39 $comparer->ignore(fcmsUnit_CompareArray::IGNORE_WHITESPACE | | |
40 fcmsUnit_CompareArray::IGNORE_EMPTY | | |
41 fcmsUnit_CompareArray::IGNORE_NULL); | |
42 $comparer->ignoreKey("antz.body"); | |
43 $comparer->compare($fcms_data, $fcms2_data); | |
44 | |
45 $difference = $comparer->getDiff(); | |
46 | |
47 $this->assertEmpty($difference, 'Unterschied: ' . var_export($difference, true)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment