PHP Class bandwidthThrottle\tokenBucket\storage\SharedStorageTest

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 shared Storage implementations.
testStoragesDontInterfere ( callable $factory ) Tests two storages with different names don't interfere each other.

Protected Methods

Method Description
tearDown ( )

Method Details

provideStorageFactories() public method

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

tearDown() protected method

protected tearDown ( )

testStoragesDontInterfere() public method

Tests two storages with different names don't interfere each other.
public testStoragesDontInterfere ( callable $factory )
$factory callable The storage factory.