| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 7 |
| Lines | 8 |
| Ratio | 100 % |
| 1 | <?php |
||
| 16 | View Code Duplication | public function testPreviousSibling() { |
|
| 17 | $child1 = $this->objFromFixture('Page', 'child01'); |
||
| 18 | $this->assertNull($child1->PreviousSibling()); |
||
| 19 | $child2 = $this->objFromFixture('Page', 'child02'); |
||
| 20 | $this->assertEquals($child1, $child2->PreviousSibling()); |
||
| 21 | $child3 = $this->objFromFixture('Page', 'child03'); |
||
| 22 | $this->assertEquals($child2, $child3->PreviousSibling()); |
||
| 23 | } |
||
| 24 | |||
| 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.