PHP Class ImboUnitTest\EventListener\AuthenticateTest

Inheritance: extends ImboUnitTest\EventListener\ListenerTests
Afficher le fichier Open project: imbo/imbo

Méthodes publiques

Méthode Description
getRewrittenSignatureData ( ) : array[] Get signatures with rewritten URLs
setUp ( ) Set up the listener
tearDown ( ) Tear down the listener
testApprovesSignaturesWhenConfigurationForcesProtocol ( $serverUrl, $protocol, $authHeader, $shouldMatch, $signature, $timestamp )
testApprovesValidSignature ( )
testApprovesValidSignatureWithAuthInfoFromQueryParameters ( )
testThrowsExceptionWhenAuthInfoIsMissing ( )
testThrowsExceptionWhenSignatureDoesNotMatch ( )
testThrowsExceptionWhenSignatureIsMissing ( )
testThrowsExceptionWhenTimestampHasExpired ( )
testThrowsExceptionWhenTimestampIsInvalid ( )

Méthodes protégées

Méthode Description
getEventMock ( $config = null )
getListener ( )

Method Details

getEventMock() protected méthode

protected getEventMock ( $config = null )

getListener() protected méthode

protected getListener ( )

getRewrittenSignatureData() public méthode

Get signatures with rewritten URLs
public getRewrittenSignatureData ( ) : array[]
Résultat array[]

setUp() public méthode

Set up the listener
public setUp ( )

tearDown() public méthode

Tear down the listener
public tearDown ( )

testApprovesSignaturesWhenConfigurationForcesProtocol() public méthode

public testApprovesSignaturesWhenConfigurationForcesProtocol ( $serverUrl, $protocol, $authHeader, $shouldMatch, $signature, $timestamp )

testApprovesValidSignature() public méthode

testApprovesValidSignatureWithAuthInfoFromQueryParameters() public méthode

testThrowsExceptionWhenAuthInfoIsMissing() public méthode

testThrowsExceptionWhenSignatureDoesNotMatch() public méthode

testThrowsExceptionWhenSignatureIsMissing() public méthode

testThrowsExceptionWhenTimestampHasExpired() public méthode

testThrowsExceptionWhenTimestampIsInvalid() public méthode