Toggle navigation
Hot Examples
EN
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Search
Home
PhlyTest
Http
UriTest
validPorts
PhlyTest\Http\UriTest::validPorts PHP Method
UriTest Class Documentation
Show file
Open project: phly/http
validPorts()
public
method
public
validPorts
( )
public function validPorts() { return ['int' => [3000], 'string' => ["3000"]]; }
UriTest
authorityInfo
invalidConstructorUris
invalidPaths
invalidPorts
invalidQueryStrings
invalidSchemes
mutations
queryStringsForEncoding
standardSchemePortCombinations
testAuthorityOmitsPortForStandardSchemePortCombinations
testCanEmitOriginFormUrl
testCanSerializeToString
testConstructWithUnsupportedSchemeRaisesAnException
testConstructorRaisesExceptionForNonStringURI
testConstructorRaisesExceptionForSeriouslyMalformedURI
testConstructorSetsAllProperties
testEmptyPathOnOriginFormRemainsAnEmptyPath
testFragmentIsNotDoubleEncoded
testFragmentIsProperlyEncoded
testMutatingSchemeStripsOffDelimiter
testMutatingWithUnsupportedSchemeRaisesAnException
testMutationResetsUriStringPropertyInClone
testPathDoesNotBecomeDoubleEncoded
testPathIsNotPrefixedWithSlashIfSetWithoutOne
testPathIsProperlyEncoded
testPathNotSlashPrefixedIsEmittedWithSlashDelimiterWhenUriIsCastToString
testQueryIsNotDoubleEncoded
testQueryIsProperlyEncoded
testRetrievingAuthorityReturnsExpectedValues
testSettingEmptyPathOnAbsoluteUriReturnsAnEmptyPath
testStringRepresentationOfAbsoluteUriWithNoPathSetsAnEmptyPath
testStringRepresentationOfOriginFormWithNoPathRetainsEmptyPath
testStripsFragmentPrefixIfPresent
testStripsQueryPrefixIfPresent
testWithFragmentReturnsNewInstanceWithProvidedFragment
testWithHostReturnsNewInstanceWithProvidedHost
testWithPathRaisesExceptionForInvalidPaths
testWithPathReturnsNewInstanceWithProvidedPath
testWithPortRaisesExceptionForInvalidPorts
testWithPortReturnsNewInstanceWithProvidedPort
testWithQueryRaisesExceptionForInvalidQueryStrings
testWithQueryReturnsNewInstanceWithProvidedQuery
testWithSchemeReturnsNewInstanceWithNewScheme
testWithUserInfoReturnsNewInstanceWithProvidedUser
testWithUserInfoReturnsNewInstanceWithProvidedUserAndPassword
validPorts