public function testSendBye() { $client = new Client(); $client->setId(1); $this->assertEquals('* BYE text1' . Client::MSG_SEPARATOR, $client->sendBye('text1')); $this->assertEquals('* BYE [code1] text1' . Client::MSG_SEPARATOR, $client->sendBye('text1', 'code1')); }