public function testSendWithoutMessage() { $oldMessage = $this->client->getMessage(); $this->expectException($this->exception); $this->client->clearMessage()->sendMessage(); $this->client->setMessage($oldMessage); }