PHP Class malkusch\lock\mutex\LockMutexTest

See also: LockMutex
Author: Markus Malkusch ([email protected])
Inheritance: extends PHPUnit_Framework_TestCase
Datei anzeigen Open project: malkusch/lock

Public Methods

Method Description
testLockFails ( ) Tests lock() fails and the code is not executed.
testUnlockAfterCode ( ) Tests unlock() is called after the code was executed.
testUnlockAfterException ( ) Tests unlock() is called after an exception.
testUnlockFailsAfterCode ( ) Tests unlock() fails after the code was executed.
testUnlockFailsAfterException ( ) Tests unlock() fails after the code threw an exception.

Protected Methods

Method Description
setUp ( )

Method Details

setUp() protected method

protected setUp ( )

testLockFails() public method

Tests lock() fails and the code is not executed.
public testLockFails ( )

testUnlockAfterCode() public method

Tests unlock() is called after the code was executed.
public testUnlockAfterCode ( )

testUnlockAfterException() public method

Tests unlock() is called after an exception.

testUnlockFailsAfterCode() public method

Tests unlock() fails after the code was executed.

testUnlockFailsAfterException() public method

The previous exception should be the code's exception.