public function testSocketWriteNotCalledIfActiveIsFalse() { $socketMock = $this->getSocketMock(0); $this->client = new Client($socketMock); $this->client->setActive(false); $this->client->sendEvent(); $this->client->flush(); }
/** * @param array $data * @param array $attributes */ public function log(array $data, array $attributes = []) { $eventData = $this->getRiemannEventData($data, $attributes); $this->riemannClient->sendEvent($eventData); }