Ejemplo n.º 1
0
 public function testMergeObjects()
 {
     $obj1 = new stdClass();
     $obj1->test1 = 'x';
     $obj2 = new stdClass();
     $obj2->test2 = 'y';
     $objMerged = Utils::mergeObjects($obj1, $obj2);
     $this->assertObjectHasAttribute('test1', $objMerged);
     $this->assertObjectHasAttribute('test2', $objMerged);
 }