1 | <?php |
||
11 | class JSONTextTest extends SapphireTest |
||
|
|||
12 | { |
||
13 | /** |
||
14 | * @todo There are a ton more permutations of a JSONPath regex |
||
15 | * See the walk() method in JSONStore |
||
16 | */ |
||
17 | public function testIsExpressionValid() |
||
27 | |||
28 | /** |
||
29 | * Ordinarily we can just use !is_null(json_decode($json)) but SS allows empty strings passed to setValue() so we need |
||
30 | * to allow otherwise invalid JSON by means of an optional 2nd param |
||
31 | */ |
||
32 | public function testIsJson() |
||
48 | } |
||
49 |
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.