Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
1 | <?php |
||
13 | public function testUpdateCMSFields() { |
||
14 | $page = new ImagePotTestPageTO(); |
||
15 | $fields = $page->getCMSFields(); |
||
16 | $tab = $fields->findOrMakeTab('Root.Main'); |
||
17 | $fields = $tab->FieldList(); |
||
18 | $names = array(); |
||
19 | foreach ($fields as $field) { |
||
20 | $names[] = $field->getName(); |
||
21 | } |
||
22 | |||
23 | error_log(print_r($names,1)); |
||
24 | } |
||
25 | |||
32 |
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.