PHP Class ImboUnitTest\EventListener\AuthenticateTest

Inheritance: extends ImboUnitTest\EventListener\ListenerTests
Show file Open project: imbo/imbo

Public Methods

Method 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 ( )

Protected Methods

Method Description
getEventMock ( $config = null )
getListener ( )

Method Details

getEventMock() protected method

protected getEventMock ( $config = null )

getListener() protected method

protected getListener ( )

getRewrittenSignatureData() public method

Get signatures with rewritten URLs
public getRewrittenSignatureData ( ) : array[]
return array[]

setUp() public method

Set up the listener
public setUp ( )

tearDown() public method

Tear down the listener
public tearDown ( )

testApprovesSignaturesWhenConfigurationForcesProtocol() public method

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

testApprovesValidSignature() public method

testApprovesValidSignatureWithAuthInfoFromQueryParameters() public method

testThrowsExceptionWhenAuthInfoIsMissing() public method

testThrowsExceptionWhenSignatureDoesNotMatch() public method

testThrowsExceptionWhenSignatureIsMissing() public method

testThrowsExceptionWhenTimestampHasExpired() public method

testThrowsExceptionWhenTimestampIsInvalid() public method