Example #1
0
 private function getDiffForArrays(array $old, array $new)
 {
     if ($this->isAssociative($old) || $this->isAssociative($new)) {
         return new Diff($this->doDiff($old, $new), true);
     } else {
         return new Diff($this->listDiffer->doDiff($old, $new), false);
     }
 }
 private function doTestDiff(Differ $differ, $old, $new, $expected, $message)
 {
     $actual = $differ->doDiff($old, $new);
     $this->assertArrayEquals($expected, $actual, false, false, $message);
 }