/** * @return ServiceLocatorInterface */ private function setUpServiceLocator() { $config = ['phone_number' => ['default_locale' => 'CH']]; $serviceLocator = ServiceLocatorMock::get(['Config' => $config]); $serviceManager = Mockery::mock('Zend\\InputFilter\\InputFilterPluginManager'); $serviceManager->shouldReceive('getServiceLocator')->andReturn($serviceLocator); return $serviceManager; }
/** * @return ServiceLocatorInterface */ private function setUpServiceLocator() { $config = ['phone_number' => ['default_locale' => 'CH']]; $serviceLocator = ServiceLocatorMock::get(['Config' => $config]); return $serviceLocator; }