1 | <?php |
||
14 | class JSONTextExtensionTest extends FunctionalTest |
||
|
|||
15 | { |
||
16 | /** |
||
17 | * @var string |
||
18 | */ |
||
19 | protected static $extra_dataobjects = [ |
||
20 | MyAwesomeJSONPage::class, |
||
21 | ]; |
||
22 | |||
23 | /** |
||
24 | * @var string |
||
25 | */ |
||
26 | protected static $fixture_file; |
||
27 | |||
28 | /** |
||
29 | * Modifies fixtures property to be able to run on PHP <5.6 without use of constant in class property which 5.6+ allows |
||
30 | */ |
||
31 | public function __construct() |
||
39 | |||
40 | /** |
||
41 | * Is an exception thrown when no POSTed vars are available for |
||
42 | * non DB-backed fields declared on a SiteTree class? |
||
43 | */ |
||
44 | public function testExceptionThrownOnBeforeWrite() |
||
61 | } |
||
62 |
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.