Services_TwitPic
[ class tree: Services_TwitPic ] [ index: Services_TwitPic ] [ all elements ]

Class: Services_TwitPic_Request_Mock

Source Location: /Services_TwitPic-0.1.0/Services/TwitPic/Request/Mock.php

Class Overview

Services_TwitPic_Request_Common
   |
   --Services_TwitPic_Request_HTTPRequest
      |
      --Services_TwitPic_Request_Mock

Class for mocking response body, code, and supressing sending data.


Author(s):

Copyright:

  • 2008 Bill Shupp

Variables

Methods


Inherited Variables

Inherited Methods

Class: Services_TwitPic_Request_HTTPRequest

Services_TwitPic_Request_HTTPRequest::__construct()
Sets the options, endpoint, and instatiates HTTP_Request
Services_TwitPic_Request_HTTPRequest::getResponseBody()
Gets the body of the response.
Services_TwitPic_Request_HTTPRequest::getResponseCode()
Gets the response code of the request.
Services_TwitPic_Request_HTTPRequest::sendRequest()
Sets the User-Agent and actually sends the request to the TwitPic API.
Services_TwitPic_Request_HTTPRequest::setImage()
Sets the image filename to be uploaded.
Services_TwitPic_Request_HTTPRequest::setPostVar()
Sets a POST variable.

Class: Services_TwitPic_Request_Common

Services_TwitPic_Request_Common::__construct()
Stores the endpoint uri and the instance of Services_TwitPic
Services_TwitPic_Request_Common::getResponseBody()
Gets the body of the response.
Services_TwitPic_Request_Common::getResponseCode()
Gets the response code.
Services_TwitPic_Request_Common::sendRequest()
Actually sends the request.
Services_TwitPic_Request_Common::setImage()
Sets the image filename to be uploaded.
Services_TwitPic_Request_Common::setPostVar()
Sets a POST variable.

Class Details

[line 37]
Class for mocking response body, code, and supressing sending data.


[ Top ]


Class Variables

$responseBody =

[line 44]

Canned response body for testing
  • Access: public

Type:   string


[ Top ]

$responseCode =

[line 51]

Canned response code for testing
  • Access: public

Type:   string


[ Top ]



Method Detail

getResponseBody   [line 77]

void getResponseBody( )

Returns the canned response body
  • Access: public

Overrides Services_TwitPic_Request_HTTPRequest::getResponseBody() (Gets the body of the response.)
[ Top ]

getResponseCode   [line 67]

void getResponseCode( )

Returns the canned response code
  • Access: public

Overrides Services_TwitPic_Request_HTTPRequest::getResponseCode() (Gets the response code of the request.)
[ Top ]

sendRequest   [line 58]

void sendRequest( )

Doesn't actually send anything
  • Access: public

Overrides Services_TwitPic_Request_HTTPRequest::sendRequest() (Sets the User-Agent and actually sends the request to the TwitPic API.)
[ Top ]


Documentation generated on Mon, 11 Mar 2019 15:25:32 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.