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 response status code

assertResponseStatusCode(int $code) 
Inherited

inherited_from \Zend\Test\PHPUnit\Controller\AbstractControllerTestCase::assertResponseStatusCode()

Parameters

$code

int

Dispatch the MVC with an URL Accept a HTTP (simulate a customer action) or console route.

dispatch(string $url, string | null $method, array | null $params) 
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

Exceptions

\Exception

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

arraythe 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

Reset the request

reset() : \Zend\Test\PHPUnit\Controller\AbstractControllerTestCase
Inherited

inherited_from \Zend\Test\PHPUnit\Controller\AbstractControllerTestCase::reset()

Returns

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

\Zend\Stdlib\Exception\LogicException

Returns

Set the trace error flag

setTraceError(bool $traceError) : \Zend\Test\PHPUnit\Controller\AbstractControllerTestCase
Inherited

inherited_from \Zend\Test\PHPUnit\Controller\AbstractControllerTestCase::setTraceError()

Parameters

$traceError

bool

Returns

Set the usage of the console router or not

setUseConsoleRequest(bool $boolean) : \Zend\Test\PHPUnit\Controller\AbstractControllerTestCase
Inherited

inherited_from \Zend\Test\PHPUnit\Controller\AbstractControllerTestCase::setUseConsoleRequest()

Parameters

$boolean

bool

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

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