withBody() public method

public withBody ( Psr\Http\Message\StreamInterface $body )
$body Psr\Http\Message\StreamInterface
 public function testWithBody()
 {
     $param = Mockery::mock('Psr\\Http\\Message\\StreamInterface');
     $this->responseMock->shouldReceive('withBody')->andReturn($this->returnValue);
     $sparkpostResponse = new SparkPostResponse($this->responseMock);
     $this->assertEquals($this->responseMock->withBody($param), $sparkpostResponse->withBody($param));
 }