/** * @dataProvider staticParamDataProvider */ public function testStaticParams($name, array $value) { $map = [[$name, null, $value]]; $this->route->expects($this->any())->method('getMatchedParam')->willReturnMap($map); $this->command->__invoke($this->route, $this->console); $this->assertEquals($value, Haikunator::${strtoupper($name)}); }