Zend\Test\PHPUnit\Controller\AbstractConsoleControllerTestCase
Synopsis
class AbstractConsoleControllerTestCase
extends AbstractControllerTestCase
{
- // members
- protected bool $useConsoleRequest;
- // Inherited members from AbstractControllerTestCase
- protected ApplicationInterface $application;
- protected array $applicationConfig;
- protected bool $useConsoleRequest;
- protected bool $usedConsoleBackup;
- protected bool $traceError;
- // methods
- public void assertConsoleOutputContains()
- public void assertNotConsoleOutputContains()
- // Inherited methods from AbstractControllerTestCase
- protected void setUp()
- protected void tearDown()
- public bool getTraceError()
- public AbstractControllerTestCase setTraceError()
- public bool getUseConsoleRequest()
- public AbstractControllerTestCase setUseConsoleRequest()
- public array getApplicationConfig()
- public AbstractControllerTestCase setApplicationConfig()
- public ApplicationInterface getApplication()
- public ServiceManager getApplicationServiceLocator()
- public RequestInterface getRequest()
- public ResponseInterface getResponse()
- public AbstractControllerTestCase url()
- public void dispatch()
- public AbstractControllerTestCase reset()
- public ResponseCollection triggerApplicationEvent()
- public void assertModulesLoaded()
- public void assertNotModulesLoaded()
- protected int getResponseStatusCode()
- public void assertResponseStatusCode()
- public void assertNotResponseStatusCode()
- public void assertApplicationException()
- protected string getControllerFullClassName()
- public void assertModuleName()
- public void assertNotModuleName()
- public void assertControllerClass()
- public void assertNotControllerClass()
- public void assertControllerName()
- public void assertNotControllerName()
- public void assertActionName()
- public void assertNotActionName()
- public void assertMatchedRouteName()
- public void assertNotMatchedRouteName()
- public void assertTemplateName()
- public void assertNotTemplateName()
- protected boolean searchTemplates()
Hierarchy
Members
protected
- $application — \Zend\Mvc\ApplicationInterface
- $applicationConfig — array
- $traceError
—
Zend\Test\PHPUnit\Controller\bool
Trace error when exception is throwed in application - $useConsoleRequest
—
Zend\Test\PHPUnit\Controller\bool
HTTP controller must use the console request - $useConsoleRequest
—
Zend\Test\PHPUnit\Controller\bool
Flag to use console router or not - $usedConsoleBackup
—
Zend\Test\PHPUnit\Controller\bool
Flag console used before tests
Methods
public
- assertConsoleOutputContains() — Assert console output contain content (insensible case)
- assertNotConsoleOutputContains() — Assert console output not contain content
Inherited from Zend\Test\PHPUnit\Controller\AbstractControllerTestCase
protected
- getControllerFullClassName() — Get the full current controller class name
- getResponseStatusCode() — Retrieve the response status code
- searchTemplates() — Recursively search a view model and it's children for the given templateName
- setUp() — Reset the application for isolation
- tearDown() — Restore params
public
- assertActionName() — Assert that the application route match used the given action
- assertApplicationException() — Assert the application exception and message
- assertControllerClass() — Assert that the application route match used the given controller class
- assertControllerName() — Assert that the application route match used the given controller name
- assertMatchedRouteName() — Assert that the application route match used the given route name
- assertModuleName() — Assert that the application route match used the given module
- assertModulesLoaded() — Assert modules were loaded with the module manager
- assertNotActionName() — Assert that the application route match used NOT the given action
- assertNotControllerClass() — Assert that the application route match used NOT the given controller class
- assertNotControllerName() — Assert that the application route match used NOT the given controller name
- assertNotMatchedRouteName() — Assert that the application route match used NOT the given route name
- assertNotModuleName() — Assert that the application route match used NOT the given module
- assertNotModulesLoaded() — Assert modules were not loaded with the module manager
- assertNotResponseStatusCode() — Assert not response status code
- assertNotTemplateName() — Assert not template name Assert that a template was not used somewhere in the view model tree
- assertResponseStatusCode() — Assert response status code
- assertTemplateName() — Assert template name Assert that a template was used somewhere in the view model tree
- dispatch() — Dispatch the MVC with a URL Accept a HTTP (simulate a customer action) or console route.
- getApplication() — Get the application object
- getApplicationConfig() — Get the application config
- getApplicationServiceLocator() — Get the service manager of the application object
- getRequest() — Get the application request object
- getResponse() — Get the application response object
- getTraceError() — Get the trace error flag
- getUseConsoleRequest() — Get the usage of the console router or not
- reset() — Reset the request
- setApplicationConfig() — Set the application config
- setTraceError() — Set the trace error flag
- setUseConsoleRequest() — Set the usage of the console router or not
- triggerApplicationEvent() — Trigger an application event
- url() — Set the request URL