Abraham\TwitterOAuth\TwitterOAuth::resetLastResponse PHP Method

resetLastResponse() public method

Resets the last response cache.
public resetLastResponse ( )
    public function resetLastResponse()
    {
        $this->response = new Response();
    }

Usage Example

 /**
  * @depends testLastResult
  */
 public function testResetLastResponse()
 {
     $this->twitter->resetLastResponse();
     $this->assertEquals('', $this->twitter->getLastApiPath());
     $this->assertEquals(0, $this->twitter->getLastHttpCode());
     $this->assertEquals(array(), $this->twitter->getLastBody());
 }
All Usage Examples Of Abraham\TwitterOAuth\TwitterOAuth::resetLastResponse