blueshoes php application framework and cms            core_lang
[ class tree: core_lang ] [ index: core_lang ] [ all elements ]

Class: Bs_HttpClient_PhpUnit

Source Location: /core/net/http/ecg/Bs_HttpClient_PhpUnit.class.php

Class Overview

Bs_Assert
   |
   --Bs_TestCase
      |
      --Bs_HttpClient_PhpUnit

Defines context for running tests. Specific context - such as


Author(s):

Version:

  • 4.3.$Revision: 1.2 $ $Date: 2003/08/09 15:17:48 $

Variables

Methods


Inherited Variables

Inherited Methods


Class Details

[line 31]
Defines context for running tests. Specific context - such as

instance variables, global variables, global state - is defined by creating a subclass that specializes the setUp() and tearDown() methods. A specific test is defined by a subclass that specializes the runTest() method.

PHP framework for testing, based on the version from the design of "JUnit".




Tags:

version:  4.3.$Revision: 1.2 $ $Date: 2003/08/09 15:17:48 $
author:  andrej arn <at blueshoes dot org>


[ Top ]


Class Variables

$host =  'http://developer.blueshoes.org/'

[line 38]


Type:   mixed


[ Top ]

$_APP =

[line 34]


Type:   mixed


[ Top ]

$_Bs_HttpClient =

[line 35]


Type:   mixed


[ Top ]

$_Bs_Url =

[line 36]


Type:   mixed


[ Top ]



Class Methods


constructor Bs_HttpClient_PhpUnit [line 41]

Bs_HttpClient_PhpUnit Bs_HttpClient_PhpUnit( mixed $name)



[ Top ]

method __Bs_HttpClient_fetchPage_1 [line 52]

void __Bs_HttpClient_fetchPage_1( )

GET request, nothing special here.



[ Top ]

method __Bs_HttpClient_fetchPage_2 [line 71]

void __Bs_HttpClient_fetchPage_2( )

GET request, fetching an url directly, not giving host and path separatly.



[ Top ]

method __Bs_HttpClient_fetchPage_3 [line 88]

void __Bs_HttpClient_fetchPage_3( )

GET request, page does not exist for sure.



[ Top ]

method __Bs_HttpClient_fetchPage_4 [line 105]

void __Bs_HttpClient_fetchPage_4( )

GET request on a page that returns a 301 moved permanently.

setting the http client not to follow redirects.




[ Top ]

method __Bs_HttpClient_fetchPage_4_1 [line 122]

void __Bs_HttpClient_fetchPage_4_1( )

GET request on a page that returns a 301 moved permanently.

follow the redirect...




[ Top ]

method __Bs_HttpClient_fetchPage_5 [line 139]

void __Bs_HttpClient_fetchPage_5( )

GET request on a page that returns a 302 moved temporarily.

setting the http client not to follow redirects.




[ Top ]

method __Bs_HttpClient_fetchPage_5_1 [line 156]

void __Bs_HttpClient_fetchPage_5_1( )

GET request on a page that returns a 302 moved temporarily.

follow the redirect...




[ Top ]

method __Bs_HttpClient_fetchPage_6 [line 172]

void __Bs_HttpClient_fetchPage_6( )

GET request on a page that returns a 401 unauthorized.



[ Top ]

method __Bs_HttpClient_fetchPage_6_1 [line 185]

void __Bs_HttpClient_fetchPage_6_1( )

GET request on a page that returns a 401 unauthorized.

but we do a login...




[ Top ]

method __Bs_HttpClient_fetchPage_7 [line 199]

void __Bs_HttpClient_fetchPage_7( )

GET request, conditional (with If-Modified-Since header from the past)



[ Top ]

method __Bs_HttpClient_fetchPage_7_2 [line 222]

void __Bs_HttpClient_fetchPage_7_2( )

GET request, conditional (with If-Modified-Since header from the future) i expect to return normally as nothing happened if you specify an invalid date (or a date that's in the future, which is considered invalid). rfc.



[ Top ]

method __Bs_HttpClient_fetchPage_7_3 [line 245]

void __Bs_HttpClient_fetchPage_7_3( )

GET request, conditional (with If-Modified-Since header)

in this example/test the file we request should not have been modified. so if you go and modify the file 'ecg/pageBasic.html', update the datetime in this code!




[ Top ]

method __Bs_HttpClient_fetchPage_8 [line 267]

void __Bs_HttpClient_fetchPage_8( )

HEAD request.



[ Top ]

method __Bs_HttpClient_fetchPage_9 [line 286]

void __Bs_HttpClient_fetchPage_9( )

POST request without data.



[ Top ]

method __Bs_HttpClient_fetchPage_9_2 [line 304]

void __Bs_HttpClient_fetchPage_9_2( )

POST request with data.



[ Top ]

method __Bs_HttpClient_fetchPage_10 [line 324]

void __Bs_HttpClient_fetchPage_10( )

connect, a few GET requests, disconnect.



[ Top ]


Documentation generated on Mon, 29 Dec 2003 21:11:15 +0100 by phpDocumentor 1.2.3