Pluf_Test_Client Class Reference

List of all members.

Public Member Functions

 __construct ($views)
 get ($page, $params=array())
 post ($page, $params=array(), $files=array())
 parseRedirect ($location)

Public Attributes

 $views = ''
 $dispatcher = ''
 $cookies = array()

Protected Member Functions

 clean ($keepcookies=true)
 dispatch ($page)


Detailed Description

Emulates a client to call your views during unit testing.

Usage: $client = new Pluf_Test_Client('./path/to/app-views.php'); $response = $client->get('/the/page/', array('var'=>'toto')); $response is now the Pluf_HTTP_Response


Constructor & Destructor Documentation

Pluf_Test_Client::__construct ( views  ) 


Member Function Documentation

Pluf_Test_Client::clean ( keepcookies = true  )  [protected]

Pluf_Test_Client::dispatch ( page  )  [protected]

Pluf_Test_Client::get ( page,
params = array() 
)

Pluf_Test_Client::post ( page,
params = array(),
files = array() 
)

Pluf_Test_Client::parseRedirect ( location  ) 


Member Data Documentation

Pluf_Test_Client::$views = ''

Pluf_Test_Client::$dispatcher = ''

Pluf_Test_Client::$cookies = array()


The documentation for this class was generated from the following file:

Generated on Wed Feb 3 15:44:52 2010 for Pluf by  doxygen