Example #1
0
 public function testAdd()
 {
     $collection = new Collection(['a' => 'x']);
     $collection->add(['a' => 'ignored', 'b' => 'y']);
     $this->assertEquals(new Collection(['a' => 'x', 'b' => 'y']), $collection);
 }