public function testCreateBindingThrowsExceptionIfGivenBindingTypeIsNotYetImplemented()
 {
     $this->setExpectedException('\\Dkd\\PhpCmis\\Exception\\CmisRuntimeException', sprintf('The given binding "%s" is not yet implemented.', BindingType::CUSTOM));
     $this->cmisBindingsHelper->createBinding(array(SessionParameter::BINDING_TYPE => BindingType::CUSTOM));
 }
 /**
  * @param array $parameters
  * @param ObjectFactoryInterface|null $objectFactory
  * @param Cache|null $cache
  * @param Cache|null $typeDefinitionCache
  * @return Data\RepositoryInfoInterface[]
  */
 public function getRepositories(array $parameters, ObjectFactoryInterface $objectFactory = null, Cache $cache = null, Cache $typeDefinitionCache = null)
 {
     $cmisBindingsHelper = new CmisBindingsHelper();
     $binding = $cmisBindingsHelper->createBinding($parameters, $typeDefinitionCache);
     return $binding->getRepositoryService()->getRepositoryInfos();
 }