PHP Класс Contao\CoreBundle\Test\EventListener\PrettyErrorScreenListenerTest

Наследование: extends Contao\CoreBundle\Test\TestCase
Показать файл Открыть проект

Открытые методы

Метод Описание
getErrorTypes ( ) : array Provides the data for the testContaoPageHandler() method.
setUpBeforeClass ( )
testBackendException ( ) Tests rendering a back end exception.
testBypassUponWrongRequestFormat ( ) Tests that the listener is bypassed if the request format is not "html".
testContaoPageHandler ( integer $type, Exception $exception ) Tests rendering the Contao page handler.
testErrorScreen ( ) Tests rendering the error screen.
testInstantiation ( ) Tests the object instantiation.
testNonExistingPageHandler ( ) Tests rendering a non existing page handler.
testServiceUnavailableHttpException ( ) Tests rendering a service unavailable HTTP exception.
testUnknownHttpException ( ) Tests rendering an unknown HTTP exception.

Защищенные методы

Метод Описание
setUp ( )

Приватные методы

Метод Описание
mockTokenStorage ( string $userClass = 'Contao\FrontendUser' ) : Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorage | PHPUnit_Framework_MockObject_MockObject Mocks a token storage object.

Описание методов

getErrorTypes() публичный Метод

Provides the data for the testContaoPageHandler() method.
public getErrorTypes ( ) : array
Результат array

setUp() защищенный Метод

protected setUp ( )

setUpBeforeClass() публичный статический Метод

public static setUpBeforeClass ( )

testBackendException() публичный Метод

Tests rendering a back end exception.

testBypassUponWrongRequestFormat() публичный Метод

Tests that the listener is bypassed if the request format is not "html".

testContaoPageHandler() публичный Метод

Tests rendering the Contao page handler.
public testContaoPageHandler ( integer $type, Exception $exception )
$type integer
$exception Exception

testErrorScreen() публичный Метод

Tests rendering the error screen.
public testErrorScreen ( )

testInstantiation() публичный Метод

Tests the object instantiation.
public testInstantiation ( )

testNonExistingPageHandler() публичный Метод

Tests rendering a non existing page handler.

testServiceUnavailableHttpException() публичный Метод

Tests rendering a service unavailable HTTP exception.

testUnknownHttpException() публичный Метод

Tests rendering an unknown HTTP exception.