PHP Class bandwidthThrottle\tokenBucket\storage\StorageTest

If you want to run vendor specific tests you should provide these environment variables: - MYSQL_DSN, MYSQL_USER - PGSQL_DSN, PGSQL_USER - MEMCACHE_HOST - REDIS_URI
See also: Storage
Author: Markus Malkusch ([email protected])
Inheritance: extends PHPUnit_Framework_TestCase
Show file Open project: bandwidth-throttle/token-bucket

Public Methods

Method Description
provideStorageFactories ( ) : callable[][] Provides uninitialized Storage implementations.
testBootstrap ( callable $storageFactory ) Tests isBootstrapped().
testIsBootstrapped ( callable $storageFactory ) Tests isBootstrapped().
testRemove ( callable $storageFactory ) Tests remove().
testSetAndGetMicrotime ( callable $storageFactory ) Tests setMicrotime() and getMicrotime().

Protected Methods

Method Description
tearDown ( )

Method Details

provideStorageFactories() public method

Provides uninitialized Storage implementations.
public provideStorageFactories ( ) : callable[][]
return callable[][] Storage factories.

tearDown() protected method

protected tearDown ( )

testBootstrap() public method

Tests isBootstrapped().
public testBootstrap ( callable $storageFactory )
$storageFactory callable Returns a storage.

testIsBootstrapped() public method

Tests isBootstrapped().
public testIsBootstrapped ( callable $storageFactory )
$storageFactory callable Returns a storage.

testRemove() public method

Tests remove().
public testRemove ( callable $storageFactory )
$storageFactory callable Returns a storage.

testSetAndGetMicrotime() public method

Tests setMicrotime() and getMicrotime().
public testSetAndGetMicrotime ( callable $storageFactory )
$storageFactory callable Returns a storage.