예제 #1
0
 /**
  * @dataProvider getArrayUnmergeData
  */
 public function test_ArrayUnmerge_ReturnsCorrectDiff($description, $test)
 {
     $configWriter = new IniFileChain(array(), null);
     list($a, $b) = $test;
     $combined = array_merge($a, $b);
     $diff = $configWriter->arrayUnmerge($a, $combined);
     // expect $b == $diff
     $this->assertEquals(serialize($b), serialize($diff), $description);
 }
예제 #2
0
 /**
  * @dataProvider getArrayUnmergeInvalidData
  */
 public function test_ArrayUnmerge_CanHandleInvalidData($description, $test)
 {
     $configWriter = new IniFileChain(array(), null);
     list($a, $b, $c) = $test;
     $this->assertEquals($c, $configWriter->arrayUnmerge($a, $b), $description);
 }