/** * Test exception on unexpected type. * * @return void * * @expectedException InvalidArgumentException * @expectedExceptionMessage Invalid parameter key: bad */ public function testGetParametersThrowsOnUndefinedType() { $map = new HandlerMap(['h1' => ['functions' => ['foo']]]); $map->getParameters('h1', 'bad'); }