assertEquals($iSeverity, $oCheck->iSeverity); $this->assertContains($sLabel, $oCheck->sLabel); } public function CheckGraphvizProvider(){ if (substr(PHP_OS,0,3) === 'WIN'){ return []; } return [ "bash injection" => [ "touch /tmp/toto", 1, "could not be executed: Please make sure it is installed and in the path", ], "command ok" => [ "/usr/bin/whereis", 2, "", ], "empty command => dot by default" => [ "", 2, "", ], "command failed" => [ "/bin/ls", 1, "dot could not be executed (retcode=2): Please make sure it is installed and in the path", ] ]; } }