| 1 | <?php |
||
| 6 | class EditableFileFieldTest extends SapphireTest |
||
|
|
|||
| 7 | { |
||
| 8 | |||
| 9 | /** |
||
| 10 | * @var string |
||
| 11 | */ |
||
| 12 | public static $fixture_file = 'userforms/tests/EditableFormFieldTest.yml'; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @var |
||
| 16 | */ |
||
| 17 | private $php_max_file_size; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * Hold the server default max file size upload limit for later |
||
| 21 | */ |
||
| 22 | public function setUp() |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Test that the field validator has the server default as the max file size upload |
||
| 33 | */ |
||
| 34 | public function testDefaultMaxFileSize() |
||
| 41 | |||
| 42 | /** |
||
| 43 | * Test that validation prevents the provided upload size limit to be less than or equal to the max php size |
||
| 44 | */ |
||
| 45 | public function testValidateFileSizeFieldValue() |
||
| 53 | |||
| 54 | /** |
||
| 55 | * Test the field validator has the updated allowed max file size |
||
| 56 | */ |
||
| 57 | public function testUpdatedMaxFileSize() |
||
| 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.