public function testFlushNotCalledIfMaxEventsIsNotReached() { $socketMock = $this->getSocketMock(0); $this->client = new Client($socketMock); $this->client->setFlushAfter(2); $this->client->sendEvent(); }