PHP Class Symfony\Component\Security\Http\Tests\Firewall\ExceptionListenerTest

Inheritance: extends PHPUnit_Framework_TestCase
Show file Open project: symfony/symfony

Public Methods

Method Description
getAccessDeniedExceptionProvider ( )
getAuthenticationExceptionProvider ( )
testAccessDeniedExceptionFullFledgedAndWithAccessDeniedHandlerAndWithoutErrorPage ( Exception $exception, Exception $eventException = null )
testAccessDeniedExceptionFullFledgedAndWithoutAccessDeniedHandlerAndWithErrorPage ( Exception $exception, Exception $eventException = null )
testAccessDeniedExceptionFullFledgedAndWithoutAccessDeniedHandlerAndWithoutErrorPage ( Exception $exception, Exception $eventException = null )
testAccessDeniedExceptionNotFullFledged ( Exception $exception, Exception $eventException = null )
testAuthenticationExceptionWithEntryPoint ( Exception $exception, Exception $eventException = null )
testAuthenticationExceptionWithoutEntryPoint ( Exception $exception, Exception $eventException = null )
testExceptionWhenEntryPointReturnsBadValue ( )

Private Methods

Method Description
createEntryPoint ( )
createEvent ( Exception $exception, $kernel = null )
createExceptionListener ( Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface $tokenStorage = null, Symfony\Component\Security\Core\Authentication\AuthenticationTrustResolverInterface $trustResolver = null, HttpUtils $httpUtils = null, Symfony\Component\Security\Http\EntryPoint\AuthenticationEntryPointInterface $authenticationEntryPoint = null, $errorPage = null, Symfony\Component\Security\Http\Authorization\AccessDeniedHandlerInterface $accessDeniedHandler = null )
createTrustResolver ( $fullFledged )

Method Details

getAccessDeniedExceptionProvider() public method

getAuthenticationExceptionProvider() public method

testAccessDeniedExceptionFullFledgedAndWithAccessDeniedHandlerAndWithoutErrorPage() public method

public testAccessDeniedExceptionFullFledgedAndWithAccessDeniedHandlerAndWithoutErrorPage ( Exception $exception, Exception $eventException = null )
$exception Exception
$eventException Exception

testAccessDeniedExceptionFullFledgedAndWithoutAccessDeniedHandlerAndWithErrorPage() public method

public testAccessDeniedExceptionFullFledgedAndWithoutAccessDeniedHandlerAndWithErrorPage ( Exception $exception, Exception $eventException = null )
$exception Exception
$eventException Exception

testAccessDeniedExceptionFullFledgedAndWithoutAccessDeniedHandlerAndWithoutErrorPage() public method

public testAccessDeniedExceptionFullFledgedAndWithoutAccessDeniedHandlerAndWithoutErrorPage ( Exception $exception, Exception $eventException = null )
$exception Exception
$eventException Exception

testAccessDeniedExceptionNotFullFledged() public method

public testAccessDeniedExceptionNotFullFledged ( Exception $exception, Exception $eventException = null )
$exception Exception
$eventException Exception

testAuthenticationExceptionWithEntryPoint() public method

public testAuthenticationExceptionWithEntryPoint ( Exception $exception, Exception $eventException = null )
$exception Exception
$eventException Exception

testAuthenticationExceptionWithoutEntryPoint() public method

public testAuthenticationExceptionWithoutEntryPoint ( Exception $exception, Exception $eventException = null )
$exception Exception
$eventException Exception

testExceptionWhenEntryPointReturnsBadValue() public method