PHP 클래스 Contao\CoreBundle\Test\EventListener\PrettyErrorScreenListenerTest

파일 보기 프로젝트 열기: contao/core-bundle

공개 메소드들

메소드 설명
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.