PHP 클래스 bandwidthThrottle\tokenBucket\storage\PredisStorageTest

These tests need the environment variable REDIS_URI.
또한 보기: PredisStorage
저자: Markus Malkusch ([email protected])
상속: extends PHPUnit_Framework_TestCase
파일 보기 프로젝트 열기: bandwidth-throttle/token-bucket

공개 메소드들

메소드 설명
provideTestBrokenCommunication ( ) : array Provides test cases for testBrokenCommunication().
testBrokenCommunication ( callable $method ) Tests broken server communication.
testGetMicrotimeFails ( ) Tests getMicrotime() fails.
testRemoveFails ( ) Tests remove() fails.
testSetMicrotimeFails ( ) Tests setMicrotime() fails.

보호된 메소드들

메소드 설명
setUp ( )

메소드 상세

provideTestBrokenCommunication() 공개 메소드

Provides test cases for testBrokenCommunication().
public provideTestBrokenCommunication ( ) : array
리턴 array Testcases.

setUp() 보호된 메소드

protected setUp ( )

testBrokenCommunication() 공개 메소드

Tests broken server communication.
public testBrokenCommunication ( callable $method )
$method callable The tested method.

testGetMicrotimeFails() 공개 메소드

Tests getMicrotime() fails.

testRemoveFails() 공개 메소드

Tests remove() fails.
public testRemoveFails ( )

testSetMicrotimeFails() 공개 메소드

Tests setMicrotime() fails.