public function testServiceManagerFactories()
{
$config = (include __DIR__ . '/../../../config/module.config.php');
$serviceManagerConfig = new Config($config['service_manager']);
$serviceManager = new ServiceManager();
$serviceManagerConfig->configureServiceManager($serviceManager);
$serviceManager->setService('config', $config);
foreach ($config['service_manager']['factories'] as $serviceName => $service) {
$this->assertTrue($serviceManager->has($serviceName));
//Make sure we can fetch the service
$service = $serviceManager->get($serviceName);
$this->assertTrue(is_object($service));
}
}