public function testSocketWriteNotCalledIfActiveIsFalse() { $socketMock = $this->getSocketMock(0); $this->client = new Client($socketMock); $this->client->setActive(false); $this->client->sendEvent(); $this->client->flush(); }