\Phile\Plugin\Phile\PhpFastCache\TestsPhileToPsr16CacheAdapterTest

Class for Phile test-cases

Summary

Methods
Properties
Constants
testSlug()
No public properties found
No constants found
createPhileCore()
createPhileResponse()
createServerRequestFromArray()
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

testSlug()

testSlug()

createPhileCore()

createPhileCore(\Phile\Core\Event  $event = null,\Phile\Core\Config  $config = null): \Phile\Phile

Creates a Phile-core with bootstrap configuration for testing

Parameters

\Phile\Core\Event $event
\Phile\Core\Config $config

Returns

\Phile\Phile —

configured core

createPhileResponse()

createPhileResponse(\Phile\Phile  $app,\Psr\Http\Message\ServerRequestInterface  $request)

Run Phile and create response

Parameters

\Phile\Phile $app
\Psr\Http\Message\ServerRequestInterface $request

createServerRequestFromArray()

createServerRequestFromArray(array  $server = null): \Psr\Http\Message\ServerRequestInterface

Creates ServerRequest

Parameters

array $server

$_SERVER environment

Returns

\Psr\Http\Message\ServerRequestInterface