Documentation

DynamicRoutesInvalidCasesUnitTest extends DynamicRoutesInvalidCasesTestClass
in package

Tags
psalm-suppress

PropertyNotSetInConstructor

Table of Contents

helloWorldOutput()  : string
Function simply returns string.
invalidCasesDataProvider()  : array<string|int, mixed>
Data provider for the testNotMatchingRoutes
setUp()  : void
Default setup
testDeleteRequestForUnExistingDynamicRoute()  : void
Testing dynamic routes for DELETE requests.
testExceptionForUnexistingRequestMethod()  : void
Testing exception throwing for unexisting request method
testGettingUnexistingParameter()  : void
Testing getParam for unexisting param
testInValidAlnumParams()  : void
Testing invalid alnum data types behaviour.
testInValidIdListParams()  : void
Testing invalid id list data types behaviour.
testInValidIntegerParams()  : void
Testing invalid integer data types behaviour.
testInvalidType()  : void
Testing invalid data types behaviour.
testNotMatchingRoutes()  : void
Testing that all invalid cases will be covered
testPostRequestForUnExistingDynamicRoute()  : void
Testing dynamic routes for POST requests.
testPutRequestForUnExistingDynamicRoute()  : void
Testing dynamic routes for PUT requests.
testUnexistingRoute()  : void
Testing unexisting route behaviour
testValidInvalidTypes()  : void
Testing invalid data types behaviour.
getRouter()  : RouterInterface

Methods

invalidCasesDataProvider()

Data provider for the testNotMatchingRoutes

public invalidCasesDataProvider() : array<string|int, mixed>
Return values
array<string|int, mixed>

testing data

testDeleteRequestForUnExistingDynamicRoute()

Testing dynamic routes for DELETE requests.

public testDeleteRequestForUnExistingDynamicRoute() : void
Return values
void

testExceptionForUnexistingRequestMethod()

Testing exception throwing for unexisting request method

public testExceptionForUnexistingRequestMethod() : void
Return values
void

testNotMatchingRoutes()

Testing that all invalid cases will be covered

public testNotMatchingRoutes(string $route, string $calling) : void
Parameters
$route : string
$calling : string
Tags
dataProvider

invalidCasesDataProvider

Return values
void

testPostRequestForUnExistingDynamicRoute()

Testing dynamic routes for POST requests.

public testPostRequestForUnExistingDynamicRoute() : void
Return values
void

testPutRequestForUnExistingDynamicRoute()

Testing dynamic routes for PUT requests.

public testPutRequestForUnExistingDynamicRoute() : void
Return values
void

Search results