Beispiel #1
0
 public function testCanChangeResponseBody()
 {
     $body = EntityBody::factory();
     $command = new MockCommand();
     $command->setClient(new \Guzzle\Service\Client());
     $command->set(AbstractCommand::RESPONSE_BODY, $body);
     $request = $command->prepare();
     $this->assertSame($body, $this->readAttribute($request, 'responseBody'));
 }