public function testUsesResponseWhenNoHandleAndGettingCurlInformation()
 {
     $formatter = new MessageFormatter('{connect_time}/{total_time}');
     $response = $this->getMockBuilder('Guzzle\\Http\\Message\\Response')->disableOriginalConstructor()->setMethods(array('getInfo'))->getMock();
     $response->expects($this->exactly(2))->method('getInfo')->will($this->returnValueMap(array(array('connect_time', '1'), array('total_time', '2'))));
     $this->assertEquals('1/2', $formatter->format($this->request, $response));
 }
 public function testUsesEmptyStringWhenNoHandleAndNoResponse()
 {
     $formatter = new MessageFormatter('{connect_time}/{total_time}');
     $this->assertEquals('/', $formatter->format($this->request));
 }