| Fully Qualified Name: | Laminas\Test\PHPUnit\Controller\AbstractControllerTestCase |
| Extends: | TestCase |
| Name | Description | Defined By |
|---|---|---|
| assertActionName() | Assert that the application route match used the given action | AbstractControllerTestCase |
| assertApplicationException() | Assert the application exception and message | AbstractControllerTestCase |
| assertControllerClass() | Assert that the application route match used the given controller class | AbstractControllerTestCase |
| assertControllerName() | Assert that the application route match used the given controller name | AbstractControllerTestCase |
| assertMatchedRouteName() | Assert that the application route match used the given route name | AbstractControllerTestCase |
| assertModuleName() | Assert that the application route match used the given module | AbstractControllerTestCase |
| assertModulesLoaded() | Assert modules were loaded with the module manager | AbstractControllerTestCase |
| assertNoMatchedRoute() | Assert that the application did not match any route | AbstractControllerTestCase |
| assertNotActionName() | Assert that the application route match used NOT the given action | AbstractControllerTestCase |
| assertNotControllerClass() | Assert that the application route match used NOT the given controller class | AbstractControllerTestCase |
| assertNotControllerName() | Assert that the application route match used NOT the given controller name | AbstractControllerTestCase |
| assertNotMatchedRouteName() | Assert that the application route match used NOT the given route name | AbstractControllerTestCase |
| assertNotModuleName() | Assert that the application route match used NOT the given module | AbstractControllerTestCase |
| assertNotModulesLoaded() | Assert modules were not loaded with the module manager | AbstractControllerTestCase |
| assertNotResponseStatusCode() | Assert not response status code | AbstractControllerTestCase |
| assertNotTemplateName() | Assert not template name Assert that a template was not used somewhere in the view model tree | AbstractControllerTestCase |
| assertResponseStatusCode() | Assert response status code | AbstractControllerTestCase |
| assertTemplateName() | Assert template name Assert that a template was used somewhere in the view model tree | AbstractControllerTestCase |
| dispatch() | Dispatch the MVC with a URL Accept a HTTP (simulate a customer action) or console route. | AbstractControllerTestCase |
| getApplication() | Get the application object | AbstractControllerTestCase |
| getApplicationConfig() | Get the application config | AbstractControllerTestCase |
| getApplicationServiceLocator() | Get the service manager of the application object | AbstractControllerTestCase |
| getRequest() | Get the application request object | AbstractControllerTestCase |
| getResponse() | Get the application response object | AbstractControllerTestCase |
| getTraceError() | Get the trace error flag | AbstractControllerTestCase |
| getUseConsoleRequest() | Get the usage of the console router or not | AbstractControllerTestCase |
| reset() | Reset the request | AbstractControllerTestCase |
| setApplicationConfig() | Set the application config | AbstractControllerTestCase |
| setTraceError() | Set the trace error flag | AbstractControllerTestCase |
| setUseConsoleRequest() | Set the usage of the console router or not | AbstractControllerTestCase |
| triggerApplicationEvent() | Trigger an application event | AbstractControllerTestCase |
| url() | Set the request URL | AbstractControllerTestCase |
Assert that the application route match used the given action
| Parameter Name | Type | Description |
|---|---|---|
| $action | string |
Returns:
Assert the application exception and message
| Parameter Name | Type | Description |
|---|---|---|
| $message | exception | |
| $type | ||
| $message |
Returns:
Assert that the application route match used the given controller class
| Parameter Name | Type | Description |
|---|---|---|
| $controller | string |
Returns:
Assert that the application route match used the given controller name
| Parameter Name | Type | Description |
|---|---|---|
| $controller | string |
Returns:
Assert that the application route match used the given route name
| Parameter Name | Type | Description |
|---|---|---|
| $route | string |
Returns:
Assert that the application route match used the given module
| Parameter Name | Type | Description |
|---|---|---|
| $module | string |
Returns:
Assert modules were loaded with the module manager
| Parameter Name | Type | Description |
|---|---|---|
| $modules | array |
Returns:
Assert that the application did not match any route
Returns:
Assert that the application route match used NOT the given action
| Parameter Name | Type | Description |
|---|---|---|
| $action | string |
Returns:
Assert that the application route match used NOT the given controller class
| Parameter Name | Type | Description |
|---|---|---|
| $controller | string |
Returns:
Assert that the application route match used NOT the given controller name
| Parameter Name | Type | Description |
|---|---|---|
| $controller | string |
Returns:
Assert that the application route match used NOT the given route name
| Parameter Name | Type | Description |
|---|---|---|
| $route | string |
Returns:
Assert that the application route match used NOT the given module
| Parameter Name | Type | Description |
|---|---|---|
| $module | string |
Returns:
Assert modules were not loaded with the module manager
| Parameter Name | Type | Description |
|---|---|---|
| $modules | array |
Returns:
Assert not response status code
| Parameter Name | Type | Description |
|---|---|---|
| $code | int |
Returns:
Assert not template name Assert that a template was not used somewhere in the view model tree
| Parameter Name | Type | Description |
|---|---|---|
| $templateName | string |
Returns:
Assert response status code
| Parameter Name | Type | Description |
|---|---|---|
| $code | int |
Returns:
Assert template name Assert that a template was used somewhere in the view model tree
| Parameter Name | Type | Description |
|---|---|---|
| $templateName | string |
Returns:
Dispatch the MVC with a URL Accept a HTTP (simulate a customer action) or console route.
The URL provided set the request URI in the request object.
| Parameter Name | Type | Description |
|---|---|---|
| $url | string | |
| $method | string|null | |
| $params | array|null | |
| $isXmlHttpRequest |
Returns:
Get the application object
Returns: \Laminas\Mvc\ApplicationInterface
Get the application config
Returns: array the application config
Get the service manager of the application object
Returns: \Laminas\ServiceManager\ServiceManager
Get the application request object
Returns: \Laminas\Stdlib\RequestInterface
Get the application response object
Returns: \ResponseInterface
Get the trace error flag
Returns: bool
Get the usage of the console router or not
Returns: bool $boolean
Reset the request
| Parameter Name | Type | Description |
|---|---|---|
| $keepPersistence |
Returns: \AbstractControllerTestCase
Set the application config
| Parameter Name | Type | Description |
|---|---|---|
| $applicationConfig | array |
Returns: \AbstractControllerTestCase
Set the trace error flag
| Parameter Name | Type | Description |
|---|---|---|
| $traceError | bool |
Returns: \AbstractControllerTestCase
Set the usage of the console router or not
| Parameter Name | Type | Description |
|---|---|---|
| $boolean | bool |
Returns: \AbstractControllerTestCase
Trigger an application event
| Parameter Name | Type | Description |
|---|---|---|
| $eventName | string |
Returns: \Laminas\EventManager\ResponseCollection
Set the request URL
| Parameter Name | Type | Description |
|---|---|---|
| $url | string | |
| $method | string|null | |
| $params | array|null |
Returns: \AbstractControllerTestCase