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
파일 보기 프로젝트 열기: malkusch/lock

공개 메소드들

메소드 설명
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.