public function testCanSetRequest() { $command = $this->getMock('GuzzleHttp\\Command\\CommandInterface'); $client = $this->getMock('GuzzleHttp\\Command\\ServiceClientInterface'); $trans = new CommandTransaction($client, $command); $event = new PrepareEvent($trans); $request = new Request('GET', 'http://httbin.org'); $event->setRequest($request); $this->assertSame($request, $event->getRequest()); $this->assertFalse($event->isPropagationStopped()); }