Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
1 | <?php |
||
4 | public function testCMSFields() { |
||
5 | $np = new NearestPOIPage(); |
||
6 | $fields = $np->getCMSFields(); |
||
7 | $tab = $fields->findOrMakeTab('Root.Layer'); |
||
8 | $fields = $tab->FieldList(); |
||
9 | $names = array(); |
||
10 | foreach ($fields as $field) { |
||
11 | $names[] = $field->getName(); |
||
12 | } |
||
13 | $expected = array('PointsOfInterestLayerID'); |
||
14 | $this->assertEquals($expected, $names); |
||
15 | } |
||
16 | |||
23 |
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.