Overview

Namespaces

  • Docta
    • MercadoLibre
      • Exception
      • OAuth2
        • Client
          • Test
  • GuzzleHttp
    • Cookie
    • Exception
    • Handler
    • Promise
      • Test
      • Tests
    • Psr7
    • Test
      • Handler
    • Tests
      • CookieJar
      • Event
      • Exception
      • Handler
      • Promise
      • Psr7
  • League
    • OAuth2
      • Client
        • Grant
          • Exception
        • Provider
          • Exception
        • Test
          • Grant
          • Provider
            • Exception
            • Fake
          • Token
          • Tool
        • Token
        • Tool
  • None
  • Psr
    • Http
      • Message

Classes

  • AppendStreamTest
  • BadStream
  • BufferStreamTest
  • CachingStreamTest
  • DroppingStreamTest
  • ExtendedUriTest
  • FnStreamTest
  • FunctionsTest
  • HasToString
  • InflateStreamtest
  • LazyOpenStreamTest
  • LimitStreamTest
  • NoSeekStreamTest
  • PumpStreamTest
  • RequestTest
  • ResponseTest
  • ServerRequestTest
  • Str
  • StreamDecoratorTraitTest
  • StreamTest
  • StreamWrapperTest
  • UploadedFileTest
  • UriNormalizerTest
  • UriResolverTest
  • UriTest
  • Overview
  • Namespace
  • Class
  • Download

Class UriTest

PHPUnit_Framework_TestCase
Extended by GuzzleHttp\Tests\Psr7\UriTest
Namespace: GuzzleHttp\Tests\Psr7
Covers: GuzzleHttp\Psr7\Uri
Located at tests/UriTest.php
Methods summary
public
# testParsesProvidedUri( )
public
# testCanTransformAndRetrievePartsIndividually( )
public
# testValidUrisStayValid( $input )

Dataprovider

getValidUris
public
# testFromParts( $input )

Dataprovider

getValidUris
public
# getValidUris( )
public
# testInvalidUrisThrowException( $invalidUri )

Dataprovider

getInvalidUris

Expectedexception

\InvalidArgumentException

Expectedexceptionmessage

Unable to parse URI
public
# getInvalidUris( )
public
# testPortMustBeValid( )

Expectedexception

\InvalidArgumentException

Expectedexceptionmessage

Invalid port: 100000. Must be between 1 and 65535
public
# testWithPortCannotBeZero( )

Expectedexception

\InvalidArgumentException

Expectedexceptionmessage

Invalid port: 0. Must be between 1 and 65535
public
# testParseUriPortCannotBeZero( )

Expectedexception

\InvalidArgumentException

Expectedexceptionmessage

Unable to parse URI
public
# testSchemeMustHaveCorrectType( )

Expectedexception

\InvalidArgumentException
public
# testHostMustHaveCorrectType( )

Expectedexception

\InvalidArgumentException
public
# testPathMustHaveCorrectType( )

Expectedexception

\InvalidArgumentException
public
# testQueryMustHaveCorrectType( )

Expectedexception

\InvalidArgumentException
public
# testFragmentMustHaveCorrectType( )

Expectedexception

\InvalidArgumentException
public
# testCanParseFalseyUriParts( )
public
# testCanConstructFalseyUriParts( )
public
# testIsDefaultPort( $scheme, $port, $isDefaultPort )

Dataprovider

getPortTestCases
public
# getPortTestCases( )
public
# testIsAbsolute( )
public
# testIsNetworkPathReference( )
public
# testIsAbsolutePathReference( )
public
# testIsRelativePathReference( )
public
# testIsSameDocumentReference( )
public
# testAddAndRemoveQueryValues( )
public
# testWithQueryValueReplacesSameKeys( )
public
# testWithoutQueryValueRemovesAllSameKeys( )
public
# testRemoveNonExistingQueryValue( )
public
# testWithQueryValueHandlesEncoding( )
public
# testWithoutQueryValueHandlesEncoding( )
public
# testSchemeIsNormalizedToLowercase( )
public
# testHostIsNormalizedToLowercase( )
public
# testPortIsNullIfStandardPortForScheme( )
public
# testPortIsReturnedIfSchemeUnknown( )
public
# testStandardPortIsNullIfSchemeChanges( )
public
# testPortPassedAsStringIsCastedToInt( )
public
# testPortCanBeRemoved( )
public
# testAuthorityWithUserInfoOrPortButWithoutHost( )

In RFC 8986 the host is optional and the authority can only consist of the user info and port.

In RFC 8986 the host is optional and the authority can only consist of the user info and port.

public
# testHostInHttpUriDefaultsToLocalhost( )
public
# testHostInHttpsUriDefaultsToLocalhost( )
public
# testFileSchemeWithEmptyHostReconstruction( )
public
# uriComponentsEncodingProvider( )
public
# testUriComponentsGetEncodedProperly( $input, $path, $query, $fragment, $output )

Dataprovider

uriComponentsEncodingProvider
public
# testWithPathEncodesProperly( )
public
# testWithQueryEncodesProperly( )
public
# testWithFragmentEncodesProperly( )
public
# testAllowsForRelativeUri( )
public
# testRelativePathAndAuhorityIsAutomagicallyFixed( )
public
# testPathStartingWithTwoSlashesAndNoAuthorityIsInvalid( )

Expectedexception

\InvalidArgumentException

Expectedexceptionmessage

The path of a URI without an authority must not start with two slashes "//"
public
# testPathStartingWithTwoSlashes( )
public
# testRelativeUriWithPathBeginngWithColonSegmentIsInvalid( )

Expectedexception

\InvalidArgumentException

Expectedexceptionmessage

A relative URI must not have a path beginning with a segment containing a colon
public
# testRelativeUriWithPathHavingColonSegment( )
public
# testDefaultReturnValuesOfGetters( )
public
# testImmutability( )
public
# testExtendingClassesInstantiates( )
MercadoLibre PHP SDK API documentation generated by ApiGen