Beispiel #1
0
 public function testHasValues()
 {
     $c = new puzzle_Client();
     $r = new puzzle_message_Request('GET', '/');
     $t = new puzzle_adapter_Transaction($c, $r);
     $response = new puzzle_message_Response(200);
     $t->setResponse($response);
     $e = new puzzle_event_HeadersEvent($t);
     $this->assertSame($c, $e->getClient());
     $this->assertSame($r, $e->getRequest());
     $this->assertSame($response, $e->getResponse());
 }
Beispiel #2
0
 public function __callback_testReleasesAdditionalEasyHandles_2(puzzle_event_HeadersEvent $e)
 {
     $e->getClient()->get('/');
 }