removeAll() public method

public removeAll ( array $elements ) : Set
$elements array
return Set
Example #1
0
 public function testEmpty()
 {
     $set = new Set([1, 2]);
     $set->removeAll([2, 1]);
     $this->assertEquals(new Set(), $set);
     $this->assertTrue($set->isEmpty());
 }