Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
1 | <?php |
||
32 | public function testHideLabel() { |
||
33 | $field = new EditableLiteralField(array( |
||
34 | 'Title' => 'Test label' |
||
35 | )); |
||
36 | |||
37 | $this->assertContains('Test label', $field->getFormField()->Field()); |
||
38 | |||
39 | $field->HideLabel = true; |
||
40 | $this->assertNotContains('Test label', $field->getFormField()->Field()); |
||
41 | } |
||
42 | } |
||
43 |
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.