Пример #1
0
 /**
  * @AfterScenario @deletePod
  */
 public function deletePod()
 {
     if (null !== $this->pod) {
         $repository = $this->getRepository();
         $repository->delete($this->pod);
         do {
             $exists = $repository->exists($this->pod->getMetadata()->getName());
         } while ($this->clientContext->isIntegration() && $exists && sleep(1) == 0);
     }
 }
Пример #2
0
 /**
  * @Given the namespace :name is ready
  */
 public function theNamespaceIsReady($name)
 {
     do {
         $phase = $this->getRepository()->findOneByName($name)->getStatus()->getPhase();
     } while ($this->clientContext->isIntegration() && $phase !== NamespaceStatus::PHASE_ACTIVE && sleep(1) == 0);
 }