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

  • AbstractMessageTest
  • EntityEnclosingRequestTest
  • HeaderComparison
  • HeaderTest
  • HttpRequestFactoryTest
  • PostFileTest
  • RequestTest
  • Overview
  • Namespace
  • Class
  • Tree

Class RequestTest

PHPUnit_Framework_TestCase
Extended by Guzzle\Tests\GuzzleTestCase
Extended by Guzzle\Tests\Http\Message\RequestTest
Namespace: Guzzle\Tests\Http\Message
Covers: Guzzle\Http\Message\Request
Covers: Guzzle\Http\Message\AbstractMessage
Group: server
Located at tests/Guzzle/Tests/Http/Message/RequestTest.php
Methods summary
protected
# setUp( )
public
# tearDown( )
public
# testConstructorBuildsRequestWithArrayHeaders( )
public
# testDescribesEvents( )
public
# testConstructorBuildsRequestWithCollectionHeaders( )
public
# testConstructorBuildsRequestWithNoHeaders( )
public
# testConstructorHandlesNonBasicAuth( )
public
# testRequestsCanBeConvertedToRawMessageStrings( )
public
# testRequestStringsIncludeAuth( )

Add authorization after the fact and see that it was put in the message

Add authorization after the fact and see that it was put in the message

public
# testGetEventDispatcher( )
public
# testRequestsManageClients( )
public
# testRequestsRequireClients( )

Expectedexception

\RuntimeException

Expectedexceptionmessage

A client must be set on the request
public
# testSend( )
public
# testGetResponse( )
public
# testRequestThrowsExceptionOnBadResponse( )
public
# testManagesQuery( )
public
# testRequestHasMethod( )
public
# testRequestHasScheme( )
public
# testRequestHasHost( )
public
# testRequestHasProtocol( )
public
# testRequestHasPath( )
public
# testPermitsFalsyComponents( )
public
# testRequestHasPort( )
public
# testRequestHandlesAuthorization( )
public
# testValidatesAuth( )

Expectedexception

\Guzzle\Common\Exception\InvalidArgumentException
public
# testGetResourceUri( )
public
# testRequestHasMutableUrl( )
public
# testRequestHasState( )
public
# testSetManualResponse( )
public
# testRequestCanHaveManuallySetResponseBody( )
public
# testHoldsCookies( )
public
# testRequestThrowsExceptionWhenSetToCompleteWithNoResponse( )

Expectedexception

\Guzzle\Http\Exception\RequestException

Expectedexceptionmessage

Error completing request
public
# testClonedRequestsUseNewInternalState( )
public
# testRecognizesBasicAuthCredentialsInUrls( )
public
# testRequestCanBeSentUsingCurl( )
public
# testThrowsExceptionsWhenUnsuccessfulResponseIsReceivedByDefault( )
public
# testCanShortCircuitErrorHandling( )
public
# testCanOverrideUnsuccessfulResponses( )
public
# testCanRetrieveUrlObject( )
public
# testUnresolvedRedirectsReturnResponse( )
public
# testCanSendCustomRequests( )
public
# testEnsuresFileCanBeCreated( )

Expectedexception

\PHPUnit_Framework_Error_Warning
public
# testAllowsFilenameForDownloadingContent( )
public
# testUsesCustomResponseBodyWhenItIsCustom( )
public
# testCanChangePortThroughScheme( )
Methods inherited from Guzzle\Tests\GuzzleTestCase
addMockedRequest(), assertContainsIns(), compareHeaders(), getMockResponse(), getMockedRequests(), getServer(), getServiceBuilder(), getWildcardObserver(), hasSubscriber(), setMockBasePath(), setMockResponse(), setServiceBuilder()
Properties summary
protected Guzzle\Http\Message\Request $request
#
protected Guzzle\Http\Client $client
#
Properties inherited from Guzzle\Tests\GuzzleTestCase
$mockBasePath, $mockObserver, $server, $serviceBuilder
Omnipay Viva Payments Gateway Module API Documentation API documentation generated by ApiGen