phpmock\functions\IncrementableTest::testIncrement PHP Метод

testIncrement() публичный Метод

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.
    public function testIncrement($expected, $increment, Incrementable $incrementable, callable $getValue)
    {
        $incrementable->increment($increment);
        $this->assertEquals($expected, $getValue($incrementable));
    }