| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 10 |
| Lines | 13 |
| Ratio | 100 % |
| 1 | <?php |
||
| 31 | View Code Duplication | public function testSiteTreeLastEditedIsIndexed() { |
|
| 32 | $st = new SiteTree(); |
||
| 33 | $indexes = $st->databaseIndexes(); |
||
| 34 | $this->assertEquals( |
||
| 35 | array( |
||
| 36 | 'ParentID' => true, |
||
| 37 | 'URLSegment' => true, |
||
| 38 | 'LastEdited' => true, |
||
| 39 | 'ClassName' => true |
||
| 40 | ), |
||
| 41 | $indexes |
||
| 42 | ); |
||
| 43 | } |
||
| 44 | } |
||
| 45 |
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.