Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
21 | public function testUnion() { |
||
22 | $sets = []; |
||
23 | $sets[] = $this->set->makeSet('hello'); |
||
24 | $sets[] = $this->set->makeSet('goodbye'); |
||
25 | $sets[] = $this->set->makeSet([true, 3.14]); |
||
26 | |||
27 | $this->set->union($sets[0], $sets[1]); |
||
28 | $this->set->union($sets[0], $sets[0]); |
||
29 | $this->assertEquals($sets[1], $this->set->find($sets[0])); |
||
30 | $this->set->union($sets[0], $sets[2]); |
||
31 | $this->assertEquals($sets[1], $this->set->find($sets[2])); |
||
32 | } |
||
33 | } |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.