PHP Class phpmock\functions\IncrementableTest

See also: Incrementable
Author: Markus Malkusch ([email protected])
Inheritance: extends PHPUnit_Framework_TestCase
Show file Open project: php-mock/php-mock

Public Methods

Method Description
provideTestIncrement ( ) : array Test cases for testIncrement().
testIncrement ( mixed $expected, mixed $increment, phpmock\functions\Incrementable $incrementable, callable $getValue ) Tests increment().

Method Details

provideTestIncrement() public method

Test cases for testIncrement().
public provideTestIncrement ( ) : array
return array Test cases.

testIncrement() public method

Tests increment().
public testIncrement ( mixed $expected, mixed $increment, phpmock\functions\Incrementable $incrementable, callable $getValue )
$expected mixed The expected value.
$increment mixed The amount of increase.
$incrementable phpmock\functions\Incrementable The tested Incrementable.
$getValue callable The lambda for getting the value.