PHP Class bandwidthThrottle\tokenBucket\storage\FileStorageTest

See also: FileStorage
Author: Markus Malkusch ([email protected])
Inheritance: extends PHPUnit_Framework_TestCase, use trait phpmock\phpunit\PHPMock
Show file Open project: bandwidth-throttle/token-bucket

Public Methods

Method Description
testGetMicrotimeFailsReading ( ) Tests reading fails in getMicrotime().
testGetMicrotimeFailsSeeking ( ) Tests seeking fails in getMicrotime().
testGetMicrotimeReadsToLittle ( ) Tests readinging too little in getMicrotime().
testOpeningFails ( ) Tests opening the file fails.
testRemoveFails ( ) Tests deleting fails.
testSetMicrotimeFailsSeeking ( ) Tests seeking fails in setMicrotime().
testSetMicrotimeFailsWriting ( ) Tests writings fails in setMicrotime().

Method Details

testGetMicrotimeFailsReading() public method

Tests reading fails in getMicrotime().

testGetMicrotimeFailsSeeking() public method

Tests seeking fails in getMicrotime().

testGetMicrotimeReadsToLittle() public method

Tests readinging too little in getMicrotime().

testOpeningFails() public method

Tests opening the file fails.
public testOpeningFails ( )

testRemoveFails() public method

Tests deleting fails.
public testRemoveFails ( )

testSetMicrotimeFailsSeeking() public method

Tests seeking fails in setMicrotime().

testSetMicrotimeFailsWriting() public method

Tests writings fails in setMicrotime().