1 | <?php |
||
12 | class JSONTextSetValueTest extends SapphireTest |
||
|
|||
13 | { |
||
14 | /** |
||
15 | * @var array |
||
16 | */ |
||
17 | protected $fixtures = [ |
||
18 | 'array' => 'tests/fixtures/json/array.json', |
||
19 | 'object' => 'tests/fixtures/json/object.json', |
||
20 | 'invalid' => 'tests/fixtures/json/invalid.json' |
||
21 | ]; |
||
22 | |||
23 | /** |
||
24 | * JSONTextTest constructor. |
||
25 | * |
||
26 | * Modify fixtures property to be able to run on PHP <5.6 without use of constant in class property which 5.6+ allows |
||
27 | */ |
||
28 | public function __construct() |
||
34 | |||
35 | /** |
||
36 | * Tests JSONText::setValue() by means of a simple JSONPath expression operating on a JSON array |
||
37 | */ |
||
38 | public function testSetValueOnSourceArray() |
||
70 | |||
71 | /** |
||
72 | * Get the contents of a fixture |
||
73 | * |
||
74 | * @param string $fixture |
||
75 | * @return string |
||
76 | */ |
||
77 | private function getFixture($fixture) |
||
82 | |||
83 | } |
||
84 |
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.