Пример #1
0
 /**
  *
  * @test
  * @dataProvider providerMerge
  */
 public function testMerge($expected, $array1, $array2)
 {
     $this->assertSame($expected, Arr::merge($array1, $array2));
 }
Пример #2
0
 /**
  * Add replacements. This will replace any variables that match the replacements
  *
  * @uses Phalcana\Arr::merge
  * @param array Associative array of the replacements to add.
  **/
 public function setReplacements($vars)
 {
     $this->replacements = Arr::merge($vars, $this->replacements);
 }