PHP 클래스 ImboUnitTest\EventListener\AuthenticateTest

상속: extends ImboUnitTest\EventListener\ListenerTests
파일 보기 프로젝트 열기: imbo/imbo

공개 메소드들

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

보호된 메소드들

메소드 설명
getEventMock ( $config = null )
getListener ( )

메소드 상세

getEventMock() 보호된 메소드

protected getEventMock ( $config = null )

getListener() 보호된 메소드

protected getListener ( )

getRewrittenSignatureData() 공개 메소드

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

setUp() 공개 메소드

Set up the listener
public setUp ( )

tearDown() 공개 메소드

Tear down the listener
public tearDown ( )

testApprovesSignaturesWhenConfigurationForcesProtocol() 공개 메소드

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

testApprovesValidSignature() 공개 메소드

testApprovesValidSignatureWithAuthInfoFromQueryParameters() 공개 메소드

testThrowsExceptionWhenAuthInfoIsMissing() 공개 메소드

testThrowsExceptionWhenSignatureDoesNotMatch() 공개 메소드

testThrowsExceptionWhenSignatureIsMissing() 공개 메소드

testThrowsExceptionWhenTimestampHasExpired() 공개 메소드

testThrowsExceptionWhenTimestampIsInvalid() 공개 메소드