These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
1 | <?php |
||
2 | |||
3 | class SitemappageTest extends SapphireTest |
||
0 ignored issues
–
show
|
|||
4 | { |
||
5 | protected $usesDatabase = false; |
||
6 | |||
7 | protected $requiredExtensions = array(); |
||
8 | |||
9 | public function TestDevBuild() |
||
10 | { |
||
11 | $exitStatus = shell_exec('php framework/cli-script.php dev/build flush=all > dev/null; echo $?'); |
||
12 | $exitStatus = intval(trim($exitStatus)); |
||
13 | $this->assertEquals(0, $exitStatus); |
||
14 | } |
||
15 | } |
||
16 |
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.