public function testMaintainsLimitValue()
 {
     $request = new Request('GET', '/');
     $response = new Response(200);
     $t = new Transaction(new Client(), $request);
     $t->setResponse($response);
     $ev = new CompleteEvent($t);
     $h = new History(2);
     $h->onComplete($ev);
     $h->onComplete($ev);
     $h->onComplete($ev);
     $this->assertEquals(2, count($h));
     $this->assertSame($request, $h->getLastRequest());
     $this->assertSame($response, $h->getLastResponse());
     foreach ($h as $trans) {
         $this->assertInstanceOf('GuzzleHttp\\Message\\RequestInterface', $trans['request']);
         $this->assertInstanceOf('GuzzleHttp\\Message\\ResponseInterface', $trans['response']);
     }
     return $h;
 }