Author: Nate Brunette (n@tebru.net)
Inheritance: extends Symfony\Component\EventDispatcher\Event
 public function testGetters()
 {
     $event = new BeforeSendEvent('method', 'requestUrl', 'headers', 'body');
     $this->assertSame('method', $event->getMethod());
     $this->assertSame('requestUrl', $event->getRequestUrl());
     $this->assertSame('headers', $event->getHeaders());
     $this->assertSame('body', $event->getBody());
 }
 public function testSetters()
 {
     $request = new Request('POST', 'http://mockservice.com/post', ['foo' => 'bar'], 'body');
     $event = new BeforeSendEvent($request);
     $request = $request->withMethod('PUT');
     $event->setRequest($request);
     $this->assertEquals('PUT', $event->getRequest()->getMethod());
 }