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