mergeResults() public static method

Will merge two sets of results into each other.
public static mergeResults ( array $results, array $secondary ) : array
$results array
$secondary array
return array
Ejemplo n.º 1
0
 public function testMagicCallGetStoredResultsWhenCalledIndirectly()
 {
     $obj = new \lithium\tests\mocks\test\mockStdClass\Mock();
     $obj->methodBar();
     $results = Mocker::mergeResults($obj->results, $obj::$staticResults);
     $this->assertArrayHasKey('__call', $results);
     $this->assertCount(2, $results['__call']);
 }