Exemplo n.º 1
0
 public function testInterceptsWithEvent()
 {
     $t = new Transaction(new Client(), new Request('GET', '/'));
     $except = new RequestException('foo', $t->request);
     $t->exception = $except;
     $e = new ErrorEvent($t);
     $this->assertSame($e->getException(), $t->exception);
 }