private function diff($expectedWarmers, $actualWarmers) { $result = array(); foreach ($expectedWarmers as $key => $value) { if (!isset($actualWarmers[$key]) || !Util::recursiveSame($value, $actualWarmers[$key])) { $result[$key] = $value; } } return $result; }
/** * @dataProvider recursiveSameTestCases */ public function testRecursiveSame($same, $lhs, $rhs) { $this->assertEquals($same, Util::recursiveSame($lhs, $rhs)); }