| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 7 |
| Lines | 8 |
| Ratio | 100 % |
| 1 | <?php |
||
| 7 | View Code Duplication | public function testNextSibling() { |
|
| 8 | $child1 = $this->objFromFixture('Page', 'child01'); |
||
| 9 | $child2 = $this->objFromFixture('Page', 'child02'); |
||
| 10 | $child3 = $this->objFromFixture('Page', 'child03'); |
||
| 11 | $this->assertNull($child3->NextSibling()); |
||
| 12 | $this->assertEquals($child2, $child1->NextSibling()); |
||
| 13 | $this->assertEquals($child3, $child2->NextSibling()); |
||
| 14 | } |
||
| 15 | |||
| 26 |
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.