public function testGetReasonPhrase() { $this->responseMock->shouldReceive('getReasonPhrase')->andReturn($this->returnValue); $sparkpostResponse = new SparkPostResponse($this->responseMock); $this->assertEquals($this->responseMock->getReasonPhrase(), $sparkpostResponse->getReasonPhrase()); }