I've already test this method before, but only the try
block, I don't know so about PHP Exceptions, My goal is to do a test unit inside catch block body and all its logic.
public function send(User $user, Notification $notif, Request $request)
{
$client = ElephantIO\Client();
try {
$client->initialize();
$client->emit('notification', array(/*...*/));
$client->close();
} catch (ServerConnectionFailureException $e) {
//TODO:
}
}