| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 57 | public function testUpdatedMaxFileSize() |
||
| 58 | { |
||
| 59 | $fileField = $this->objFromFixture('EditableFileField', 'file-field'); |
||
| 60 | $fileField->MaxFileSizeMB = .25; |
||
| 61 | $fileField->write(); |
||
| 62 | |||
| 63 | $formField = $fileField->getFormField(); |
||
| 64 | $this->assertEquals($formField->getValidator()->getAllowedMaxFileSize(), 256); |
||
| 65 | } |
||
| 66 | |||
| 67 | } |
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.