Example #1
0
 /**
  * @dataProvider getElements
  */
 public function testAdd($element)
 {
     $this->set->add($element);
     $this->assertTrue($this->set->contains($element));
     // Test with an array of elements.
     $elements = $this->getRandomElements();
     $this->set->removeAll();
     $this->set->add($elements);
     $this->assertCount(count($elements), $this->set);
 }