Zend Framework
1.12
|
Public Member Functions | |
__set ($name, $value) | |
Overloading: prevent overloading to special properties. | |
__get ($name) | |
Overloading for common properties. | |
bootstrap () | |
Bootstrap the front controller. | |
dispatch ($url=null) | |
Dispatch the MVC. | |
reset () | |
Reset MVC state. | |
resetRequest () | |
Reset the request object. | |
resetResponse () | |
Reset the response object. | |
assertQuery ($path, $message= '') | |
Assert against DOM selection. | |
assertNotQuery ($path, $message= '') | |
Assert against DOM selection. | |
assertQueryContentContains ($path, $match, $message= '') | |
Assert against DOM selection; node should contain content. | |
assertNotQueryContentContains ($path, $match, $message= '') | |
Assert against DOM selection; node should NOT contain content. | |
assertQueryContentRegex ($path, $pattern, $message= '') | |
Assert against DOM selection; node should match content. | |
assertNotQueryContentRegex ($path, $pattern, $message= '') | |
Assert against DOM selection; node should NOT match content. | |
assertQueryCount ($path, $count, $message= '') | |
Assert against DOM selection; should contain exact number of nodes. | |
assertNotQueryCount ($path, $count, $message= '') | |
Assert against DOM selection; should NOT contain exact number of nodes. | |
assertQueryCountMin ($path, $count, $message= '') | |
Assert against DOM selection; should contain at least this number of nodes. | |
assertQueryCountMax ($path, $count, $message= '') | |
Assert against DOM selection; should contain no more than this number of nodes. | |
registerXpathNamespaces ($xpathNamespaces) | |
Register XPath namespaces. | |
assertXpath ($path, $message= '') | |
Assert against XPath selection. | |
assertNotXpath ($path, $message= '') | |
Assert against XPath selection. | |
assertXpathContentContains ($path, $match, $message= '') | |
Assert against XPath selection; node should contain content. | |
assertNotXpathContentContains ($path, $match, $message= '') | |
Assert against XPath selection; node should NOT contain content. | |
assertXpathContentRegex ($path, $pattern, $message= '') | |
Assert against XPath selection; node should match content. | |
assertNotXpathContentRegex ($path, $pattern, $message= '') | |
Assert against XPath selection; node should NOT match content. | |
assertXpathCount ($path, $count, $message= '') | |
Assert against XPath selection; should contain exact number of nodes. | |
assertNotXpathCount ($path, $count, $message= '') | |
Assert against XPath selection; should NOT contain exact number of nodes. | |
assertXpathCountMin ($path, $count, $message= '') | |
Assert against XPath selection; should contain at least this number of nodes. | |
assertXpathCountMax ($path, $count, $message= '') | |
Assert against XPath selection; should contain no more than this number of nodes. | |
assertRedirect ($message= '') | |
Assert that response is a redirect. | |
assertNotRedirect ($message= '') | |
Assert that response is NOT a redirect. | |
assertRedirectTo ($url, $message= '') | |
Assert that response redirects to given URL. | |
assertNotRedirectTo ($url, $message= '') | |
Assert that response does not redirect to given URL. | |
assertRedirectRegex ($pattern, $message= '') | |
Assert that redirect location matches pattern. | |
assertNotRedirectRegex ($pattern, $message= '') | |
Assert that redirect location does not match pattern. | |
assertResponseCode ($code, $message= '') | |
Assert response code. | |
assertNotResponseCode ($code, $message= '') | |
Assert response code. | |
assertHeader ($header, $message= '') | |
Assert response header exists. | |
assertNotHeader ($header, $message= '') | |
Assert response header does not exist. | |
assertHeaderContains ($header, $match, $message= '') | |
Assert response header exists and contains the given string. | |
assertNotHeaderContains ($header, $match, $message= '') | |
Assert response header does not exist and/or does not contain the given string. | |
assertHeaderRegex ($header, $pattern, $message= '') | |
Assert response header exists and matches the given pattern. | |
assertNotHeaderRegex ($header, $pattern, $message= '') | |
Assert response header does not exist and/or does not match the given regex. | |
assertModule ($module, $message= '') | |
Assert that the last handled request used the given module. | |
assertNotModule ($module, $message= '') | |
Assert that the last handled request did NOT use the given module. | |
assertController ($controller, $message= '') | |
Assert that the last handled request used the given controller. | |
assertNotController ($controller, $message= '') | |
Assert that the last handled request did NOT use the given controller. | |
assertAction ($action, $message= '') | |
Assert that the last handled request used the given action. | |
assertNotAction ($action, $message= '') | |
Assert that the last handled request did NOT use the given action. | |
assertRoute ($route, $message= '') | |
Assert that the specified route was used. | |
assertNotRoute ($route, $message= '') | |
Assert that the route matched is NOT as specified. | |
getFrontController () | |
Retrieve front controller instance. | |
getRequest () | |
Retrieve test case request object. | |
getResponse () | |
Retrieve test case response object. | |
getQuery () | |
Retrieve DOM query object. | |
url ($urlOptions=array(), $name=null, $reset=false, $encode=true) | |
URL Helper. | |
urlizeOptions ($urlOptions, $actionControllerModuleOnly=true) | |
Public Attributes | |
$bootstrap | |
Protected Member Functions | |
setUp () | |
Set up MVC app. | |
_resetPlaceholders () | |
Rest all view placeholders. | |
_incrementAssertionCount () | |
Increment assertion count. | |
Protected Attributes | |
$_frontController | |
$_query | |
$_request | |
$_response | |
$_xpathNamespaces = array() | |
__get | ( | $name | ) |
Overloading for common properties.
Provides overloading for request, response, and frontController objects.
mixed | $name |
__set | ( | $name, | |
$value | |||
) |
Overloading: prevent overloading to special properties.
string | $name | |
mixed | $value |
|
protected |
Increment assertion count.
|
protected |
Rest all view placeholders.
assertAction | ( | $action, | |
$message = '' |
|||
) |
Assert that the last handled request used the given action.
string | $action | |
string | $message |
assertController | ( | $controller, | |
$message = '' |
|||
) |
Assert that the last handled request used the given controller.
string | $controller | |
string | $message |
assertHeader | ( | $header, | |
$message = '' |
|||
) |
Assert response header exists.
string | $header | |
string | $message |
assertHeaderContains | ( | $header, | |
$match, | |||
$message = '' |
|||
) |
Assert response header exists and contains the given string.
string | $header | |
string | $match | |
string | $message |
assertHeaderRegex | ( | $header, | |
$pattern, | |||
$message = '' |
|||
) |
Assert response header exists and matches the given pattern.
string | $header | |
string | $pattern | |
string | $message |
assertModule | ( | $module, | |
$message = '' |
|||
) |
Assert that the last handled request used the given module.
string | $module | |
string | $message |
assertNotAction | ( | $action, | |
$message = '' |
|||
) |
Assert that the last handled request did NOT use the given action.
string | $action | |
string | $message |
assertNotController | ( | $controller, | |
$message = '' |
|||
) |
Assert that the last handled request did NOT use the given controller.
string | $controller | |
string | $message |
assertNotHeader | ( | $header, | |
$message = '' |
|||
) |
Assert response header does not exist.
string | $header | |
string | $message |
assertNotHeaderContains | ( | $header, | |
$match, | |||
$message = '' |
|||
) |
Assert response header does not exist and/or does not contain the given string.
string | $header | |
string | $match | |
string | $message |
assertNotHeaderRegex | ( | $header, | |
$pattern, | |||
$message = '' |
|||
) |
Assert response header does not exist and/or does not match the given regex.
string | $header | |
string | $pattern | |
string | $message |
assertNotModule | ( | $module, | |
$message = '' |
|||
) |
Assert that the last handled request did NOT use the given module.
string | $module | |
string | $message |
assertNotQuery | ( | $path, | |
$message = '' |
|||
) |
Assert against DOM selection.
string | $path | CSS selector path |
string | $message |
assertNotQueryContentContains | ( | $path, | |
$match, | |||
$message = '' |
|||
) |
Assert against DOM selection; node should NOT contain content.
string | $path | CSS selector path |
string | $match | content that should NOT be contained in matched nodes |
string | $message |
assertNotQueryContentRegex | ( | $path, | |
$pattern, | |||
$message = '' |
|||
) |
Assert against DOM selection; node should NOT match content.
string | $path | CSS selector path |
string | $pattern | pattern that should NOT be contained in matched nodes |
string | $message |
assertNotQueryCount | ( | $path, | |
$count, | |||
$message = '' |
|||
) |
Assert against DOM selection; should NOT contain exact number of nodes.
string | $path | CSS selector path |
string | $count | Number of nodes that should NOT match |
string | $message |
assertNotRedirect | ( | $message = '' | ) |
Assert that response is NOT a redirect.
string | $message |
assertNotRedirectRegex | ( | $pattern, | |
$message = '' |
|||
) |
Assert that redirect location does not match pattern.
string | $pattern | |
string | $message |
assertNotRedirectTo | ( | $url, | |
$message = '' |
|||
) |
Assert that response does not redirect to given URL.
string | $url | |
string | $message |
assertNotResponseCode | ( | $code, | |
$message = '' |
|||
) |
Assert response code.
int | $code | |
string | $message |
assertNotRoute | ( | $route, | |
$message = '' |
|||
) |
Assert that the route matched is NOT as specified.
string | $route | |
string | $message |
assertNotXpath | ( | $path, | |
$message = '' |
|||
) |
Assert against XPath selection.
string | $path | XPath path |
string | $message |
assertNotXpathContentContains | ( | $path, | |
$match, | |||
$message = '' |
|||
) |
Assert against XPath selection; node should NOT contain content.
string | $path | XPath path |
string | $match | content that should NOT be contained in matched nodes |
string | $message |
assertNotXpathContentRegex | ( | $path, | |
$pattern, | |||
$message = '' |
|||
) |
Assert against XPath selection; node should NOT match content.
string | $path | XPath path |
string | $pattern | pattern that should NOT be contained in matched nodes |
string | $message |
assertNotXpathCount | ( | $path, | |
$count, | |||
$message = '' |
|||
) |
Assert against XPath selection; should NOT contain exact number of nodes.
string | $path | XPath path |
string | $count | Number of nodes that should NOT match |
string | $message |
assertQuery | ( | $path, | |
$message = '' |
|||
) |
Assert against DOM selection.
string | $path | CSS selector path |
string | $message |
assertQueryContentContains | ( | $path, | |
$match, | |||
$message = '' |
|||
) |
Assert against DOM selection; node should contain content.
string | $path | CSS selector path |
string | $match | content that should be contained in matched nodes |
string | $message |
assertQueryContentRegex | ( | $path, | |
$pattern, | |||
$message = '' |
|||
) |
Assert against DOM selection; node should match content.
string | $path | CSS selector path |
string | $pattern | Pattern that should be contained in matched nodes |
string | $message |
assertQueryCount | ( | $path, | |
$count, | |||
$message = '' |
|||
) |
Assert against DOM selection; should contain exact number of nodes.
string | $path | CSS selector path |
string | $count | Number of nodes that should match |
string | $message |
assertQueryCountMax | ( | $path, | |
$count, | |||
$message = '' |
|||
) |
Assert against DOM selection; should contain no more than this number of nodes.
string | $path | CSS selector path |
string | $count | Maximum number of nodes that should match |
string | $message |
assertQueryCountMin | ( | $path, | |
$count, | |||
$message = '' |
|||
) |
Assert against DOM selection; should contain at least this number of nodes.
string | $path | CSS selector path |
string | $count | Minimum number of nodes that should match |
string | $message |
assertRedirect | ( | $message = '' | ) |
Assert that response is a redirect.
string | $message |
assertRedirectRegex | ( | $pattern, | |
$message = '' |
|||
) |
Assert that redirect location matches pattern.
string | $pattern | |
string | $message |
assertRedirectTo | ( | $url, | |
$message = '' |
|||
) |
Assert that response redirects to given URL.
string | $url | |
string | $message |
assertResponseCode | ( | $code, | |
$message = '' |
|||
) |
Assert response code.
int | $code | |
string | $message |
assertRoute | ( | $route, | |
$message = '' |
|||
) |
Assert that the specified route was used.
string | $route | |
string | $message |
assertXpath | ( | $path, | |
$message = '' |
|||
) |
Assert against XPath selection.
string | $path | XPath path |
string | $message |
assertXpathContentContains | ( | $path, | |
$match, | |||
$message = '' |
|||
) |
Assert against XPath selection; node should contain content.
string | $path | XPath path |
string | $match | content that should be contained in matched nodes |
string | $message |
assertXpathContentRegex | ( | $path, | |
$pattern, | |||
$message = '' |
|||
) |
Assert against XPath selection; node should match content.
string | $path | XPath path |
string | $pattern | Pattern that should be contained in matched nodes |
string | $message |
assertXpathCount | ( | $path, | |
$count, | |||
$message = '' |
|||
) |
Assert against XPath selection; should contain exact number of nodes.
string | $path | XPath path |
string | $count | Number of nodes that should match |
string | $message |
assertXpathCountMax | ( | $path, | |
$count, | |||
$message = '' |
|||
) |
Assert against XPath selection; should contain no more than this number of nodes.
string | $path | XPath path |
string | $count | Maximum number of nodes that should match |
string | $message |
assertXpathCountMin | ( | $path, | |
$count, | |||
$message = '' |
|||
) |
Assert against XPath selection; should contain at least this number of nodes.
string | $path | XPath path |
string | $count | Minimum number of nodes that should match |
string | $message |
|
final |
Bootstrap the front controller.
Resets the front controller, and then bootstraps it.
If $bootstrap is a callback, executes it; if it is a file, it include's it. When done, sets the test case request and response objects into the front controller.
dispatch | ( | $url = null | ) |
Dispatch the MVC.
If a URL is provided, sets it as the request URI in the request object. Then sets test case request and response objects in front controller, disables throwing exceptions, and disables returning the response. Finally, dispatches the front controller.
string | null | $url |
getFrontController | ( | ) |
Retrieve front controller instance.
getQuery | ( | ) |
Retrieve DOM query object.
getRequest | ( | ) |
Retrieve test case request object.
getResponse | ( | ) |
Retrieve test case response object.
registerXpathNamespaces | ( | $xpathNamespaces | ) |
Register XPath namespaces.
array | $xpathNamespaces |
reset | ( | ) |
Reset MVC state.
Creates new request/response objects, resets the front controller instance, and resets the action helper broker.
resetRequest | ( | ) |
Reset the request object.
Useful for test cases that need to test multiple trips to the server.
resetResponse | ( | ) |
Reset the response object.
Useful for test cases that need to test multiple trips to the server.
|
protected |
url | ( | $urlOptions = array() , |
|
$name = null , |
|||
$reset = false , |
|||
$encode = true |
|||
) |
URL Helper.
array | $urlOptions | |
string | $name | |
bool | $reset | |
bool | $encode |
urlizeOptions | ( | $urlOptions, | |
$actionControllerModuleOnly = true |
|||
) |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |