Documentation

BigSetOfRoutesUnitTest extends BigSetOfRoutesTestClass
in package

Tags
psalm-suppress

PropertyNotSetInConstructor

Table of Contents

HELLO_STATIC_WORLD  = 'Hello static world!'
HELLO_WORLD  = 'Hello world!'
bigSetOfRoutesDataProvider()  : array<string|int, mixed>
Method provides testing data
clearMethodTestDataProvider()  : array<string|int, mixed>
Data provider
helloWorldOutput()  : string
Function simply returns string.
setUp()  : void
Default setup
staticHelloWorldOutput()  : string
Function simply returns string.
subArray()  : string
Method returns some testing string
testArrayRoutes()  : void
Testing array routes
testBigSetOfRoutes()  : void
Testing method
testClearMethod()  : void
Testing 'clear' method
testDeleteRequestForUnExistingStaticRoute()  : void
Testing static routes for DELETE requests.
testEmptyArrayRoutes()  : void
Testing empty array routes
testIndexRoute()  : void
Testing empty array routes
testInvalidRequestMethodException()  : void
Testing invalid request method
testMultipleRequestTypes()  : void
Testing empty array routes
testPostRequestForUnExistingStaticRoute()  : void
Testing static routes for POST requests.
testPutRequestForUnExistingStaticRoute()  : void
Testing static routes for PUT requests.
testRequestForExistingStaticRoute()  : void
Testing static routes calls for all possible request methods
testRouteExists()  : void
Testing routeExists
testUnknownMethodException()  : void
Testing exception throwing if the method was not found
getRouter()  : RouterInterface
{@inheritdoc}

Constants

Methods

bigSetOfRoutesDataProvider()

Method provides testing data

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

testing data

clearMethodTestDataProvider()

Data provider

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

test data

helloWorldOutput()

Function simply returns string.

public helloWorldOutput() : string
Return values
string

setUp()

Default setup

public setUp() : void
Tags
see
TestCase::setUp()
Return values
void

staticHelloWorldOutput()

Function simply returns string.

public static staticHelloWorldOutput() : string
Return values
string

subArray()

Method returns some testing string

public subArray() : string
Return values
string

testArrayRoutes()

Testing array routes

public testArrayRoutes() : void
Return values
void

testBigSetOfRoutes()

Testing method

public testBigSetOfRoutes(int $amount) : void
Parameters
$amount : int

amount of routes

Tags
dataProvider

bigSetOfRoutesDataProvider

Return values
void

testClearMethod()

Testing 'clear' method

public testClearMethod(string $method) : void
Parameters
$method : string

request method

Tags
dataProvider

clearMethodTestDataProvider

Return values
void

testDeleteRequestForUnExistingStaticRoute()

Testing static routes for DELETE requests.

public testDeleteRequestForUnExistingStaticRoute() : void
Return values
void

testEmptyArrayRoutes()

Testing empty array routes

public testEmptyArrayRoutes() : void
Return values
void

testIndexRoute()

Testing empty array routes

public testIndexRoute() : void
Return values
void

testInvalidRequestMethodException()

Testing invalid request method

public testInvalidRequestMethodException() : void
Return values
void

testMultipleRequestTypes()

Testing empty array routes

public testMultipleRequestTypes() : void
Return values
void

testPostRequestForUnExistingStaticRoute()

Testing static routes for POST requests.

public testPostRequestForUnExistingStaticRoute() : void
Return values
void

testPutRequestForUnExistingStaticRoute()

Testing static routes for PUT requests.

public testPutRequestForUnExistingStaticRoute() : void
Return values
void

testRequestForExistingStaticRoute()

Testing static routes calls for all possible request methods

public testRequestForExistingStaticRoute(string $method) : void
Parameters
$method : string
Tags
dataProvider

clearMethodTestDataProvider

Return values
void

testRouteExists()

Testing routeExists

public testRouteExists() : void
Return values
void

testUnknownMethodException()

Testing exception throwing if the method was not found

public testUnknownMethodException() : void
Return values
void

Search results

    Яндекс.Метрика