Class TestOfUrl

Description

Standard unit test class for day to day testing of PHP code XP style. Adds some useful standard assertions.

Located in /libraries/pear/simpletest/test/url_test.php (line 86)

RunnableTest
   |
   --SimpleTestCase
      |
      --UnitTestCase
         |
         --TestOfUrl
Method Summary
Variables

Inherited Variables

Inherited from SimpleTestCase

SimpleTestCase::$_reporter

Inherited from RunnableTest

RunnableTest::$_label
Methods
Constructor TestOfUrl (line 87)
TestOfUrl TestOfUrl ()
assertUrl (line 294)
void assertUrl (mixed $raw, mixed $parts, [mixed $params = false])
testAbsolutePathPageSplitting (line 171)
void testAbsolutePathPageSplitting ()
testAddParameters (line 136)
void testAddParameters ()
testAmbiguousHosts (line 274)
void testAmbiguousHosts ()
testBasicParsing (line 98)
void testBasicParsing ()
testBlitz (line 247)
void testBlitz ()
testClearingParameters (line 145)
void testClearingParameters ()
testDecodingParameters (line 159)
void testDecodingParameters ()
testDefaultUrl (line 90)
void testDefaultUrl ()
testEncodingParameters (line 152)
void testEncodingParameters ()
testMakingAbsolute (line 182)
void testMakingAbsolute ()
testMakingAbsoluteAppendedPath (line 216)
void testMakingAbsoluteAppendedPath ()
testMakingAbsolutehasNoEffectWhenAlreadyAbsolute (line 221)
void testMakingAbsolutehasNoEffectWhenAlreadyAbsolute ()
testMakingAnEmptyUrlAbsolute (line 190)
void testMakingAnEmptyUrlAbsolute ()
testMakingARootUrlAbsolute (line 208)
void testMakingARootUrlAbsolute ()
testMakingAShortQueryUrlAbsolute (line 198)
void testMakingAShortQueryUrlAbsolute ()
testPageSplitting (line 165)
void testPageSplitting ()
testParseBareParameter (line 110)
void testParseBareParameter ()
testParseEmptyParameter (line 115)
void testParseEmptyParameter ()
testParseMultipleParameters (line 125)
void testParseMultipleParameters ()
testParseParameterPair (line 120)
void testParseParameterPair ()
testParsingParameterMixture (line 130)
void testParsingParameterMixture ()
testPathNormalisation (line 177)
void testPathNormalisation ()
testRelativeUrls (line 104)
void testRelativeUrls ()
testRequestEncoding (line 238)
void testRequestEncoding ()
testUsernameAndPasswordAreUrlDecoded (line 232)
void testUsernameAndPasswordAreUrlDecoded ()

Inherited Methods

Inherited From UnitTestCase

 UnitTestCase::UnitTestCase()
 UnitTestCase::assertCopy()
 UnitTestCase::assertEqual()
 UnitTestCase::assertError()
 UnitTestCase::assertErrorPattern()
 UnitTestCase::assertIdentical()
 UnitTestCase::assertIsA()
 UnitTestCase::assertNoErrors()
 UnitTestCase::assertNotEqual()
 UnitTestCase::assertNotIdentical()
 UnitTestCase::assertNotNull()
 UnitTestCase::assertNoUnwantedPattern()
 UnitTestCase::assertNull()
 UnitTestCase::assertReference()
 UnitTestCase::assertWantedPattern()

Inherited From SimpleTestCase

 SimpleTestCase::SimpleTestCase()
 SimpleTestCase::assertExpectation()
 SimpleTestCase::assertFalse()
 SimpleTestCase::assertTrue()
 SimpleTestCase::dump()
 SimpleTestCase::error()
 SimpleTestCase::fail()
 SimpleTestCase::getAssertionLine()
 SimpleTestCase::invoke()
 SimpleTestCase::pass()
 SimpleTestCase::run()
 SimpleTestCase::sendMessage()
 SimpleTestCase::setUp()
 SimpleTestCase::signal()
 SimpleTestCase::swallowErrors()
 SimpleTestCase::tearDown()
 SimpleTestCase::_createRunner()
 SimpleTestCase::_isConstructor()
 SimpleTestCase::_isTest()

Inherited From RunnableTest

 RunnableTest::RunnableTest()
 RunnableTest::getLabel()
 RunnableTest::getSize()
 RunnableTest::run()

Documentation generated on Fri, 24 Dec 2004 13:03:53 +0000 by phpDocumentor 1.3.0RC3