protected function checkMailCatcherStatus()
{
try {
$client = new Client();
$request = $client->get(self::MAILCATCHER_URL . 'messages');
$response = $request->send();
if ($response->getStatusCode() !== 200) {
throw new HttpException($response->getStatusCode());
}
} catch (HttpException $e) {
$this->markTestSkipped($e->getMailCatcherMessage() . '[' . $e->getStatusCode() . ']');
} catch (\Exception $e) {
$message = 'MailCatcher is not alivable';
$this->markTestSkipped($message);
$this->app->log($message);
}
}