PHP Класс 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
См. также: Storage
Автор: Markus Malkusch ([email protected])
Наследование: extends PHPUnit_Framework_TestCase
Показать файл Открыть проект

Открытые методы

Метод Описание
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().

Защищенные методы

Метод Описание
tearDown ( )

Описание методов

provideStorageFactories() публичный Метод

Provides uninitialized Storage implementations.
public provideStorageFactories ( ) : callable[][]
Результат callable[][] Storage factories.

tearDown() защищенный Метод

protected tearDown ( )

testBootstrap() публичный Метод

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

testIsBootstrapped() публичный Метод

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

testRemove() публичный Метод

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

testSetAndGetMicrotime() публичный Метод

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