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