SparkPost\SparkPostResponse::withProtocolVersion PHP Метод

withProtocolVersion() публичный Метод

public withProtocolVersion ( $version )
    public function withProtocolVersion($version)
    {
        return $this->response->withProtocolVersion($version);
    }

Usage Example

 public function testWithProtocolVersion()
 {
     $param = 'protocol version';
     $this->responseMock->shouldReceive('withProtocolVersion')->andReturn($this->returnValue);
     $sparkpostResponse = new SparkPostResponse($this->responseMock);
     $this->assertEquals($this->responseMock->withProtocolVersion($param), $sparkpostResponse->withProtocolVersion($param));
 }