PHP Class Stiphle\Throttle\LeakyBucketTest

DESCRIPTION
Author: Dave Marshall ([email protected])
Inheritance: extends PHPUnit_Framework_TestCas\PHPUnit_Framework_TestCase
Show file Open project: davedevelopment/stiphle

Protected Properties

Property Type Description
$storage

Public Methods

Method Description
setup ( )
testGetEstimate ( ) This test assumes your machine is capable of processing the first five calls in less that a second :)

Method Details

setup() public method

public setup ( )

testGetEstimate() public method

Nothing special here, ideally we need to mock the storage out and test it with different values etc
public testGetEstimate ( )

Property Details

$storage protected property

protected $storage