Overview

Namespaces

  • Guzzle
    • Batch
      • Exception
    • Cache
    • Common
      • Exception
    • Http
      • Curl
      • Exception
      • Message
        • Header
      • QueryAggregator
    • Inflection
    • Iterator
    • Log
    • Parser
      • Cookie
      • Message
      • UriTemplate
      • Url
    • Plugin
      • Async
      • Backoff
      • Cache
      • Cookie
        • CookieJar
        • Exception
      • CurlAuth
      • ErrorResponse
        • Exception
      • History
      • Log
      • Md5
      • Mock
      • Oauth
    • Service
      • Builder
      • Command
        • Factory
        • LocationVisitor
          • Request
          • Response
      • Description
      • Exception
      • Resource
    • Stream
    • Tests
      • Batch
      • Cache
      • Common
        • Cache
        • Exception
      • Http
        • Curl
        • Exception
        • Message
          • Header
      • Inflection
      • Iterator
      • Log
      • Message
      • Mock
      • Parser
        • Cookie
        • Message
      • Parsers
        • UriTemplate
      • Plugin
        • Async
        • Backoff
        • Cache
        • Cookie
          • CookieJar
        • CurlAuth
        • ErrorResponse
        • History
        • Log
        • Md5
        • Mock
        • Oauth
        • Redirect
      • Service
        • Builder
        • Command
          • LocationVisitor
            • Request
            • Response
        • Description
        • Exception
        • Mock
          • Command
            • Sub
          • Model
        • Resource
      • Stream
  • None
  • Omnipay
    • Common
      • Exception
      • Message
    • Dummy
      • Message
    • VivaPayments
      • Message
  • PHP

Classes

  • HeaderComparisonTest
  • ResponseTest
  • Overview
  • Namespace
  • Class
  • Tree

Class ResponseTest

PHPUnit_Framework_TestCase
Extended by Guzzle\Tests\GuzzleTestCase
Extended by Guzzle\Tests\Message\ResponseTest
Namespace: Guzzle\Tests\Message
Covers: Guzzle\Http\Message\Response
Group: server
Located at tests/Guzzle/Tests/Http/Message/ResponseTest.php
Methods summary
public
# setup( )
public
# tearDown( )
public
# testConstructor( )
public
# test__toString( )
public
# testFactory( )
public
# testFactoryCanCreateHeadResponses( )
public
# testFactoryRequiresMessage( )
public
# testGetBody( )
public
# testManagesStatusCode( )
public
# testGetMessage( )
public
# testGetRawHeaders( )
public
# testHandlesStatusAndStatusCodes( )
public
# testIsClientError( )
public
# testIsError( )
public
# testIsInformational( )
public
# testIsRedirect( )
public
# testIsServerError( )
public
# testIsSuccessful( )
public
# testGetAcceptRanges( )
public
# testCalculatesAge( )
public
# testGetAllow( )
public
# testGetCacheControl( )
public
# testGetContentEncoding( )
public
# testGetContentLanguage( )
public
# testGetContentLength( )
public
# testGetContentLocation( )
public
# testGetContentDisposition( )
public
# testGetContentMd5( )
public
# testGetContentRange( )
public
# testGetContentType( )
public
# testGetDate( )
public
# testGetEtag( )
public
# testGetExpires( )
public
# testGetLastModified( )
public
# testGetLocation( )
public
# testGetPragma( )
public
# testGetProxyAuthenticate( )
public
# testGetServer( )
public
# testGetSetCookie( )
public
# testGetMultipleSetCookie( )
public
# testGetSetCookieNormalizesHeaders( )
public
# testGetTrailer( )
public
# testGetTransferEncoding( )
public
# testGetVary( )
public
# testReturnsViaHeader( )
public
# testGetWarning( )
public
# testReturnsWwwAuthenticateHeader( )
public
# testReturnsConnectionHeader( )
public
# testReturnsHeaders( )
public
# testHasTransferInfo( )
public
# testDeterminesIfItCanBeCached( )
public
# testDeterminesResponseMaxAge( )
public
# testDeterminesIfItCanValidate( )
public
# testCalculatesFreshness( )
public
# testHandlesProtocols( )
public
# testComparesContentType( )
public
# testResponseDeterminesIfMethodIsAllowedBaseOnAllowHeader( )
public
# testParsesJsonResponses( )
public
# testThrowsExceptionWhenFailsToParseJsonResponse( )

Expectedexception

\Guzzle\Common\Exception\RuntimeException

Expectedexceptionmessage

Unable to parse response body into JSON: 4
public
# testParsesXmlResponses( )
public
# testThrowsExceptionWhenFailsToParseXmlResponse( )

Expectedexception

\Guzzle\Common\Exception\RuntimeException

Expectedexceptionmessage

Unable to parse response body into XML: String could not be parsed as XML
public
# testResponseIsSerializable( )
public
# testPreventsComplexExternalEntities( )
Methods inherited from Guzzle\Tests\GuzzleTestCase
addMockedRequest(), assertContainsIns(), compareHeaders(), getMockResponse(), getMockedRequests(), getServer(), getServiceBuilder(), getWildcardObserver(), hasSubscriber(), setMockBasePath(), setMockResponse(), setServiceBuilder()
Properties summary
protected Guzzle\Http\Message\Response $response

The response object to test

The response object to test

#
Properties inherited from Guzzle\Tests\GuzzleTestCase
$mockBasePath, $mockObserver, $server, $serviceBuilder
Omnipay Viva Payments Gateway Module API Documentation API documentation generated by ApiGen