public function testSleepIncrementation(AbstractSleepFunction $sleepFunction, $amount, $expected) { $value = new FixedValueFunction(0); $sleepFunction->addIncrementable($value); call_user_func($sleepFunction->getCallable(), $amount); $this->assertEquals($expected, call_user_func($value->getCallable())); }