protected function createServiceManagerMock(array $config = []) { $sm = new ServiceManager(); $sm->setService('Config', $config); return $sm; }