| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 35 | public function run() |
||
| 36 | { |
||
| 37 | $mysqli = @(new \mysqli($this->host, $this->username, $this->password)); |
||
| 38 | |||
| 39 | if ($mysqli->connect_errno) { |
||
| 40 | $message = 'Database is not running; ' . $mysqli->connect_error; |
||
| 41 | return new Result(Result::STATUS_FAIL, $message); |
||
| 42 | } else { |
||
| 43 | return new Result(Result::STATUS_PASS, 'Mysql server is up and running.'); |
||
| 44 | } |
||
| 52 |