Skip to content

Instantly share code, notes, and snippets.

@syranez
Created August 29, 2011 18:49
Show Gist options
  • Save syranez/1179100 to your computer and use it in GitHub Desktop.
Save syranez/1179100 to your computer and use it in GitHub Desktop.
CompareArray-Verwendung
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