Methods
Assert that the application route match used the given action
assertActionName(string $action)
Inherited
inherited_from |
\Zend\Test\PHPUnit\Controller\AbstractControllerTestCase::assertActionName() |
Parameters
$action
string
Assert the application exception and message
assertApplicationException(\Zend\Test\PHPUnit\Controller\$type $type, \Zend\Test\PHPUnit\Controller\$message $message)
Inherited
inherited_from |
\Zend\Test\PHPUnit\Controller\AbstractControllerTestCase::assertApplicationException() |
Parameters
$type
\Zend\Test\PHPUnit\Controller\$type
application exception type
$message
\Zend\Test\PHPUnit\Controller\$message
application exception message
Assert console output contain content (insensible case)
assertConsoleOutputContains(string $match) : void
Parameters
$match
string
content that should be contained in matched nodes
Assert that the application route match used the given controller class
assertControllerClass(string $controller)
Inherited
inherited_from |
\Zend\Test\PHPUnit\Controller\AbstractControllerTestCase::assertControllerClass() |
Parameters
$controller
string
Assert that the application route match used the given controller name
assertControllerName(string $controller)
Inherited
inherited_from |
\Zend\Test\PHPUnit\Controller\AbstractControllerTestCase::assertControllerName() |
Parameters
$controller
string
Assert that the application route match used the given route name
assertMatchedRouteName(string $route)
Inherited
inherited_from |
\Zend\Test\PHPUnit\Controller\AbstractControllerTestCase::assertMatchedRouteName() |
Parameters
$route
string
Assert that the application route match used the given module
assertModuleName(string $module)
Inherited
inherited_from |
\Zend\Test\PHPUnit\Controller\AbstractControllerTestCase::assertModuleName() |
Parameters
$module
string
Assert modules were loaded with the module manager
assertModulesLoaded(array $modules)
Inherited
inherited_from |
\Zend\Test\PHPUnit\Controller\AbstractControllerTestCase::assertModulesLoaded() |
Parameters
$modules
array
Assert that the application route match used NOT the given action
assertNotActionName(string $action)
Inherited
inherited_from |
\Zend\Test\PHPUnit\Controller\AbstractControllerTestCase::assertNotActionName() |
Parameters
$action
string
Assert console output not contain content
assertNotConsoleOutputContains(string $match) : void
Parameters
$match
string
content that should be contained in matched nodes
Assert that the application route match used NOT the given controller class
assertNotControllerClass(string $controller)
Inherited
inherited_from |
\Zend\Test\PHPUnit\Controller\AbstractControllerTestCase::assertNotControllerClass() |
Parameters
$controller
string
Assert that the application route match used NOT the given controller name
assertNotControllerName(string $controller)
Inherited
inherited_from |
\Zend\Test\PHPUnit\Controller\AbstractControllerTestCase::assertNotControllerName() |
Parameters
$controller
string
Assert that the application route match used NOT the given route name
assertNotMatchedRouteName(string $route)
Inherited
inherited_from |
\Zend\Test\PHPUnit\Controller\AbstractControllerTestCase::assertNotMatchedRouteName() |
Parameters
$route
string
Assert that the application route match used NOT the given module
assertNotModuleName(string $module)
Inherited
inherited_from |
\Zend\Test\PHPUnit\Controller\AbstractControllerTestCase::assertNotModuleName() |
Parameters
$module
string
Assert modules were not loaded with the module manager
assertNotModulesLoaded(array $modules)
Inherited
inherited_from |
\Zend\Test\PHPUnit\Controller\AbstractControllerTestCase::assertNotModulesLoaded() |
Parameters
$modules
array
Assert not response status code
assertNotResponseStatusCode(int $code)
Inherited
inherited_from |
\Zend\Test\PHPUnit\Controller\AbstractControllerTestCase::assertNotResponseStatusCode() |
Parameters
$code
int
Assert not template name
Assert that a template was not used somewhere in the view model tree
assertNotTemplateName(string $templateName)
Inherited
inherited_from |
\Zend\Test\PHPUnit\Controller\AbstractControllerTestCase::assertNotTemplateName() |
Parameters
$templateName
string
Assert response status code
assertResponseStatusCode(int $code)
Inherited
inherited_from |
\Zend\Test\PHPUnit\Controller\AbstractControllerTestCase::assertResponseStatusCode() |
Parameters
$code
int
Assert template name
Assert that a template was used somewhere in the view model tree
assertTemplateName(string $templateName)
Inherited
inherited_from |
\Zend\Test\PHPUnit\Controller\AbstractControllerTestCase::assertTemplateName() |
Parameters
$templateName
string
Dispatch the MVC with a URL
Accept a HTTP (simulate a customer action) or console route.
dispatch(string $url, string | null $method, array | null $params, $isXmlHttpRequest)
Inherited
The URL provided set the request URI in the request object.
inherited_from |
\Zend\Test\PHPUnit\Controller\AbstractControllerTestCase::dispatch() |
Parameters
$url
string
$method
stringnull
$params
arraynull
$isXmlHttpRequest
Exceptions
Get the application object
getApplication() : \Zend\Mvc\ApplicationInterface
Inherited
inherited_from |
\Zend\Test\PHPUnit\Controller\AbstractControllerTestCase::getApplication() |
Returns
Get the application config
getApplicationConfig() : array
Inherited
inherited_from |
\Zend\Test\PHPUnit\Controller\AbstractControllerTestCase::getApplicationConfig() |
Returns
array
the application config
Get the service manager of the application object
getApplicationServiceLocator() : \Zend\ServiceManager\ServiceManager
Inherited
inherited_from |
\Zend\Test\PHPUnit\Controller\AbstractControllerTestCase::getApplicationServiceLocator() |
Returns
Get the application request object
getRequest() : \Zend\Stdlib\RequestInterface
Inherited
inherited_from |
\Zend\Test\PHPUnit\Controller\AbstractControllerTestCase::getRequest() |
Returns
Get the application response object
getResponse() : \Zend\Stdlib\ResponseInterface
Inherited
inherited_from |
\Zend\Test\PHPUnit\Controller\AbstractControllerTestCase::getResponse() |
Returns
Get the trace error flag
getTraceError() : bool
Inherited
inherited_from |
\Zend\Test\PHPUnit\Controller\AbstractControllerTestCase::getTraceError() |
Returns
bool
Get the usage of the console router or not
getUseConsoleRequest() : bool
Inherited
inherited_from |
\Zend\Test\PHPUnit\Controller\AbstractControllerTestCase::getUseConsoleRequest() |
Returns
bool
$boolean
Set the application config
setApplicationConfig(array $applicationConfig) : \Zend\Test\PHPUnit\Controller\AbstractControllerTestCase
Inherited
inherited_from |
\Zend\Test\PHPUnit\Controller\AbstractControllerTestCase::setApplicationConfig() |
Parameters
$applicationConfig
array
Exceptions
Returns
Trigger an application event
triggerApplicationEvent(string $eventName) : \Zend\EventManager\ResponseCollection
Inherited
inherited_from |
\Zend\Test\PHPUnit\Controller\AbstractControllerTestCase::triggerApplicationEvent() |
Parameters
$eventName
string
Returns
Set the request URL
url(string $url, string | null $method, array | null $params) : \Zend\Test\PHPUnit\Controller\AbstractControllerTestCase
Inherited
inherited_from |
\Zend\Test\PHPUnit\Controller\AbstractControllerTestCase::url() |
Parameters
$url
string
$method
stringnull
$params
arraynull
Returns
Get the full current controller class name
getControllerFullClassName() : string
Inherited
inherited_from |
\Zend\Test\PHPUnit\Controller\AbstractControllerTestCase::getControllerFullClassName() |
Returns
string
Retrieve the response status code
getResponseStatusCode() : int
Inherited
inherited_from |
\Zend\Test\PHPUnit\Controller\AbstractControllerTestCase::getResponseStatusCode() |
Returns
int
Recursively search a view model and it's children for the given templateName
searchTemplates(\Zend\View\Model\ModelInterface $viewModel, string $templateName) : boolean
Inherited
inherited_from |
\Zend\Test\PHPUnit\Controller\AbstractControllerTestCase::searchTemplates() |
Parameters
$templateName
string
Returns
boolean
Reset the application for isolation
setUp()
Inherited
inherited_from |
\Zend\Test\PHPUnit\Controller\AbstractControllerTestCase::setUp() |
Restore params
tearDown()
Inherited
inherited_from |
\Zend\Test\PHPUnit\Controller\AbstractControllerTestCase::tearDown() |
Properties
$application
$application : \Zend\Mvc\ApplicationInterface
Inherited
inherited_from |
\Zend\Test\PHPUnit\Controller\AbstractControllerTestCase::$$application |
$applicationConfig
$applicationConfig : array
Inherited
inherited_from |
\Zend\Test\PHPUnit\Controller\AbstractControllerTestCase::$$applicationConfig |
Trace error when exception is throwed in application
$traceError : bool
Inherited
inherited_from |
\Zend\Test\PHPUnit\Controller\AbstractControllerTestCase::$$traceError |
HTTP controller must use the console request
$useConsoleRequest : bool
Flag console used before tests
$usedConsoleBackup : bool
Inherited
inherited_from |
\Zend\Test\PHPUnit\Controller\AbstractControllerTestCase::$$usedConsoleBackup |