/**
  * Check whether the repository supports this descriptor and skip the test if it is not supported.
  *
  * @param string $descriptor
  *
  * @return bool True if the test can be done. Otherwise the test is skipped.
  */
 protected function skipIfNotSupported($descriptor)
 {
     if (false === $this->session->getRepository()->getDescriptor($descriptor)) {
         $this->markTestSkipped('Descriptor "' . $descriptor . '" not supported');
     }
     return true;
 }
Beispiel #2
0
 /**
  * Proxy for getting the repository (make mocking easier).
  *
  * @return \PHPCR\RepositoryInterface
  */
 public function getRepository()
 {
     $this->init();
     return $this->session->getRepository();
 }