RequestDataCollectorTest
extends TestCase
in package
Table of Contents
- __call() : mixed
- Magic method to allow non existing methods to be called and delegated.
- __callStatic() : mixed
- Magic method to allow non existing methods to be called and delegated.
- __invoke() : mixed
- provideControllerCallables() : mixed
- staticControllerMethod() : mixed
- Dummy method used as controller callable.
- testCollect() : mixed
- testCollectWithoutRouteParams() : mixed
- testControllerInspection() : mixed
- testItAddsRedirectedAttributesWhenRequestContainsSpecificCookie() : mixed
- testItCollectsTheRedirectionAndClearTheCookie() : mixed
- testItIgnoresInvalidCallables() : mixed
- testItSetsARedirectCookieIfTheResponseIsARedirection() : mixed
- createRequest() : mixed
- createResponse() : mixed
- injectController() : mixed
- Inject the given controller callable into the data collector.
- createRequestWithSession() : mixed
- getCookieByName() : mixed
Methods
__call()
Magic method to allow non existing methods to be called and delegated.
public
__call(mixed $method, mixed $args) : mixed
Parameters
- $method : mixed
- $args : mixed
Return values
mixed —__callStatic()
Magic method to allow non existing methods to be called and delegated.
public
static __callStatic(mixed $method, mixed $args) : mixed
Parameters
- $method : mixed
- $args : mixed
Return values
mixed —__invoke()
public
__invoke() : mixed
Return values
mixed —provideControllerCallables()
public
provideControllerCallables() : mixed
Return values
mixed —staticControllerMethod()
Dummy method used as controller callable.
public
static staticControllerMethod() : mixed
Return values
mixed —testCollect()
public
testCollect() : mixed
Return values
mixed —testCollectWithoutRouteParams()
public
testCollectWithoutRouteParams() : mixed
Return values
mixed —testControllerInspection()
public
testControllerInspection(mixed $name, mixed $callable, mixed $expected) : mixed
Parameters
- $name : mixed
- $callable : mixed
- $expected : mixed
Tags
Return values
mixed —testItAddsRedirectedAttributesWhenRequestContainsSpecificCookie()
public
testItAddsRedirectedAttributesWhenRequestContainsSpecificCookie() : mixed
Return values
mixed —testItCollectsTheRedirectionAndClearTheCookie()
public
testItCollectsTheRedirectionAndClearTheCookie() : mixed
Return values
mixed —testItIgnoresInvalidCallables()
public
testItIgnoresInvalidCallables() : mixed
Return values
mixed —testItSetsARedirectCookieIfTheResponseIsARedirection()
public
testItSetsARedirectCookieIfTheResponseIsARedirection() : mixed
Return values
mixed —createRequest()
protected
createRequest([mixed $routeParams = ['name' => 'foo'] ]) : mixed
Parameters
- $routeParams : mixed = ['name' => 'foo']
Return values
mixed —createResponse()
protected
createResponse() : mixed
Return values
mixed —injectController()
Inject the given controller callable into the data collector.
protected
injectController(mixed $collector, mixed $controller, mixed $request) : mixed
Parameters
- $collector : mixed
- $controller : mixed
- $request : mixed
Return values
mixed —createRequestWithSession()
private
createRequestWithSession() : mixed
Return values
mixed —getCookieByName()
private
getCookieByName(Response $response, mixed $name) : mixed
Parameters
- $response : Response
- $name : mixed