Currently a single array is provided to benchmarking methods with a @ParamProvider:
/**
* @ParamProviders({"provideFoo"})
*/
public function benchFoo(array $params)
{
$x = $param['foo'];
$y = $param['bar'];
}
We could expand the array keys to arguments as with PHPUnit:
/**
* @ParamProviders({"provideFoo"})
*/
public function benchFoo($foo, $bar)
{
}
Disadvantages:
- Slightly increased call time.
- Multiple parameter providers give a cartesian product, it would be difficult to anticipate the argument order (although we could enforce matching keys to argument names).
Currently a single array is provided to benchmarking methods with a
@ParamProvider:We could expand the array keys to arguments as with PHPUnit:
Disadvantages: