Exemple #1
0
 public function testArrayReplaceRecursive()
 {
     $array = array('http' => array('method' => 'POST', 'content' => 'lorem ipsum'));
     $replacement = array('http' => array('content' => 'New content', 'new_key' => 'some value'), 'another_key' => 919);
     $replaced = OpauthStrategy::arrayReplaceRecursive($array, $replacement);
     $this->assertEquals($replaced, array('http' => array('method' => 'POST', 'content' => 'New content', 'new_key' => 'some value'), 'another_key' => 919));
 }