public function testSendTextMessage()
{
$entity = m::mock('Guzzle\\Http\\Message\\EntityEnclosingRequest');
$entity->shouldReceive('send')->once();
$data = array('room_id' => 'egg', 'from' => 'spoon', 'message' => 'hello world', 'message_format' => 'text', 'notify' => false, 'color' => 'yellow', 'format' => 'json');
$http = m::mock('Guzzle\\Http\\Client');
$http->shouldReceive('post')->with('rooms/message?format=json&auth_token=123', array('Content-type' => 'application/x-www-form-urlencoded'), http_build_query($data))->andReturn($entity)->once();
$transport = new Guzzle('123', 'egg', 'spoon');
$transport->setHttp($http);
Hippy::init(null, null, null, $transport);
Hippy::text('hello world');
}