isSubset() public method

Subset (A ⊆ B) Is the set a subset of the other set? In other words, does the other set contain all the elements of the set?
public isSubset ( Set $B ) : boolean
$B Set
return boolean
Exemplo n.º 1
0
 /**
  * @dataProvider dataProviderForIsNotSubset
  */
 public function testIsNotSubset(array $A, array $B)
 {
     $setA = new Set($A);
     $setB = new Set($B);
     $this->assertFalse($setA->isSubset($setB));
 }