PHP Класс malkusch\lock\mutex\MutexTest

If you want to run integrations tests you should provide these environment variables: - MEMCACHE_HOST - REDIS_URIS - a comma separated list of redis:// URIs.
См. также: Mutex
Автор: Markus Malkusch ([email protected])
Наследование: extends PHPUnit_Framework_TestCase
Показать файл Открыть проект

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

Метод Описание
provideMutexFactories ( ) : callable[][] Provides Mutex factories.
testLiveness ( callable $mutexFactory ) Tests that locks will be released automatically.
testRelease ( callable $mutexFactory ) Tests that synchronized() released the lock.
testSynchronizedDelegates ( callable $mutexFactory ) Tests synchronized() executes the code and returns its result.
testSynchronizedPassesExceptionThrough ( callable $mutexFactory ) Tests synchronized() rethrows the exception of the code.

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

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

Provides Mutex factories.
public provideMutexFactories ( ) : callable[][]
Результат callable[][] The mutex factories.

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

Tests that locks will be released automatically.
public testLiveness ( callable $mutexFactory )
$mutexFactory callable The Mutex factory.

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

Tests that synchronized() released the lock.
public testRelease ( callable $mutexFactory )
$mutexFactory callable The Mutex factory.

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

Tests synchronized() executes the code and returns its result.
public testSynchronizedDelegates ( callable $mutexFactory )
$mutexFactory callable The Mutex factory.

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

Tests synchronized() rethrows the exception of the code.
public testSynchronizedPassesExceptionThrough ( callable $mutexFactory )
$mutexFactory callable The Mutex factory.