Conditions | 1 |
Paths | 1 |
Total Lines | 8 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
1 | <?php |
||
36 | public function testRequiredFields() |
||
37 | { |
||
38 | $object = $this->objFromFixture('EditableFieldGroup', 'group-empty'); |
||
39 | $validator = $object->getCMSValidator(); |
||
40 | |||
41 | $this->assertInstanceOf('RequiredFields', $validator); |
||
42 | $this->assertTrue($validator->fieldIsRequired('Title')); |
||
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.