PHP Class Contao\CoreBundle\Test\EventListener\PrettyErrorScreenListenerTest

Inheritance: extends Contao\CoreBundle\Test\TestCase
Afficher le fichier Open project: contao/core-bundle

Méthodes publiques

Méthode Description
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.

Méthodes protégées

Méthode Description
setUp ( )

Private Methods

Méthode Description
mockTokenStorage ( string $userClass = 'Contao\FrontendUser' ) : Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorage | PHPUnit_Framework_MockObject_MockObject Mocks a token storage object.

Method Details

getErrorTypes() public méthode

Provides the data for the testContaoPageHandler() method.
public getErrorTypes ( ) : array
Résultat array

setUp() protected méthode

protected setUp ( )

setUpBeforeClass() public static méthode

public static setUpBeforeClass ( )

testBackendException() public méthode

Tests rendering a back end exception.

testBypassUponWrongRequestFormat() public méthode

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

testContaoPageHandler() public méthode

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

testErrorScreen() public méthode

Tests rendering the error screen.
public testErrorScreen ( )

testInstantiation() public méthode

Tests the object instantiation.
public testInstantiation ( )

testNonExistingPageHandler() public méthode

Tests rendering a non existing page handler.

testServiceUnavailableHttpException() public méthode

Tests rendering a service unavailable HTTP exception.

testUnknownHttpException() public méthode

Tests rendering an unknown HTTP exception.