[ Index ] |
|
Code source de Symfony 1.0.0 |
[Code source] [Imprimer] [Statistiques]
(pas de description)
Poids: | 470 lignes (13 kb) |
Inclus ou requis: | 0 fois |
Référencé: | 0 fois |
Nécessite: | 0 fichiers |
sfTestBrowser:: (18 méthodes):
initialize()
test()
getAndCheck()
call()
back()
forward()
isRedirected()
check()
isStatusCode()
responseContains()
isRequestParameter()
isForwardedTo()
isResponseHeader()
checkResponseElement()
throwsException()
isCached()
isUriCached()
sfTestBrowserErrorHandler()
Classe: sfTestBrowser - X-Ref
sfTestBrowser simulates a fake browser which can test a symfony application.initialize($hostname = null, $remote = null, $options = array() X-Ref |
Initializes the browser tester instance. param: string Hostname param: string Remote IP address param: array Options |
test() X-Ref |
Retrieves the lime_test instance. return: sfTestBrowser The lime_test instance |
getAndCheck($module, $action, $url = null, $code = 200) X-Ref |
Retrieves and checks an action. param: string Module name param: string Action name param: string Url param: string The expected return status code return: sfBrowser The current sfBrowser instance |
call($uri, $method = 'get', $parameters = array() X-Ref |
Calls a request. return: sfBrowser The current sfBrowser instance |
back() X-Ref |
Simulates the browser back button. return: sfBrowser The current sfBrowser instance |
forward() X-Ref |
Simulates the browser forward button. return: sfBrowser The current sfBrowser instance |
isRedirected($boolean = true) X-Ref |
Tests if the current request has been redirected. param: boolean Flag for redirection mode return: sfBrowser The current sfBrowser instance |
check($uri, $text = null) X-Ref |
Checks that the current response contains a given text. param: string Uniform resource identifier param: string Text in the response return: sfBrowser The current sfBrowser instance |
isStatusCode($statusCode = 200) X-Ref |
Test an status code for the current test browser. param: string Status code to check, default 200 return: sfBrowser The current sfBrowser instance |
responseContains($text) X-Ref |
Tests whether or not a given string is in the response. param: string Text to check return: sfBrowser The current sfBrowser instance |
isRequestParameter($key, $value) X-Ref |
Tests whether or not a given key and value exists in the current request. param: string Key param: string Value return: sfBrowser The current sfBrowser instance |
isForwardedTo($moduleName, $actionName, $position = 'last') X-Ref |
Checks that the request is forwarded to a given module/action. param: string The module name param: string The action name param: mixed The position in the action stack (default to the last entry) return: object this |
isResponseHeader($key, $value) X-Ref |
Tests for a response header. param: string Key param: string Value return: sfBrowser The current sfBrowser instance |
checkResponseElement($selector, $value = true, $options = array() X-Ref |
Tests that the current response matches a given CSS selector. param: string The response selector param: string Flag for the selector param: array Options for the current test return: sfBrowser The current sfBrowser instance |
throwsException($class = null, $message = null) X-Ref |
Tests if an exception is thrown by the latest request. param: string Class name param: string Message name return: sfBrowser The current sfBrowser instance |
isCached($boolean, $with_layout = false) X-Ref |
Tests if the given uri is cached. param: boolean Flag for checking the cache param: boolean If have or not layout return: sfBrowser The current sfBrowser instance |
isUriCached($uri, $boolean, $with_layout = false) X-Ref |
Tests if the given uri is cached. param: string Uniform resource identifier param: boolean Flag for checking the cache param: boolean If have or not layout param: sfTestBrowser Test browser instance |
sfTestBrowserErrorHandler($errno, $errstr, $errfile, $errline) X-Ref |
Error handler for the current test browser instance. param: mixed Error number param: string Error message param: string Error file param: mixed Error line |
Généré le : Fri Mar 16 22:42:14 2007 | par Balluche grâce à PHPXref 0.7 |