1 | <?php |
||
3 | class DMSUploadFieldTest extends SapphireTest |
||
|
|||
4 | { |
||
5 | /** |
||
6 | * @var DMSUploadField |
||
7 | */ |
||
8 | protected $field; |
||
9 | |||
10 | public function setUp() |
||
16 | |||
17 | /** |
||
18 | * SS 3.x injector will return an overloaded parent of a child class if the child is not injected. |
||
19 | * This is a sanity check. |
||
20 | */ |
||
21 | public function testDmsUploadFieldIsInjectable() |
||
25 | |||
26 | /** |
||
27 | * The validator is coded to always return true. Replace this test if this behaviour changes in future. |
||
28 | */ |
||
29 | public function testValidatorAlwaysReturnsTrue() |
||
33 | |||
34 | public function testGetItemHandler() |
||
38 | |||
39 | /** |
||
40 | * Ensure that the folder name can be get/set and that the value set is casted to a string |
||
41 | */ |
||
42 | public function testCanGetAndSetFolderName() |
||
49 | } |
||
50 |
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.