isDisjoint() public method

Example of disjoint sets: A = {1, 2, 3} B = {4, 5, 6}
public isDisjoint ( Set $other ) : boolean
$other Set
return boolean
Exemplo n.º 1
0
 /**
  * @dataProvider dataProviderForNotDisjoint
  */
 public function testNotDisjoint(array $A, array $B)
 {
     $setA = new Set($A);
     $setB = new Set($B);
     $this->assertFalse($setA->isDisjoint($setB));
 }