PHP Class bandwidthThrottle\tokenBucket\storage\PHPRedisStorageTest

These tests need the environment variable REDIS_URI.
See also: PHPRedisStorage
Author: Markus Malkusch ([email protected])
Inheritance: extends PHPUnit_Framework_TestCase
Show file Open project: bandwidth-throttle/token-bucket

Public Methods

Method Description
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.

Protected Methods

Method Description
setUp ( )

Method Details

provideTestBrokenCommunication() public method

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

setUp() protected method

protected setUp ( )

testBrokenCommunication() public method

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

testGetMicrotimeFails() public method

Tests getMicrotime() fails.

testRemoveFails() public method

Tests remove() fails.
public testRemoveFails ( )

testSetMicrotimeFails() public method

Tests setMicrotime() fails.