stop() публичный Метод

public stop ( $timeout = 10, $signal = null )
 /**
  * Reverts configuration done by the context.
  *
  * @AfterScenario
  */
 public function revertConfiguration()
 {
     // Remove configuration entities.
     foreach ($this->configurationEntities as $configuration) {
         if ($configuration->entityType() == 'integration_consumer') {
             /** @var AbstractConsumer $consumer */
             $consumer = ConsumerFactory::getInstance($configuration->getMachineName());
             $consumer->processRollback();
             // Remove consumer & its corresponding migration.
             Migration::deregisterMigration('test_consumer');
         }
         $configuration->delete();
     }
     if ($this->backendWasConfigured) {
         entity_delete('integration_backend', 'http_mock');
     }
     if ($this->server && $this->server->isStarted()) {
         $this->server->stop();
     }
 }
 /**
  * Stops the mock HTTP server if it was started.
  *
  * @AfterScenario
  */
 public function stopMockServer()
 {
     if ($this->server && $this->server->isStarted()) {
         $this->server->stop();
     }
 }
 public function tearDown()
 {
     $this->server->stop();
 }
Пример #4
0
 public static function tearDownAfterClass()
 {
     static::assertSame('', (string) static::$server1->getOutput(), (string) static::$server1->getOutput());
     static::assertSame('', (string) static::$server1->getErrorOutput(), (string) static::$server1->getErrorOutput());
     static::$server1->stop();
 }
Пример #5
0
 private function stopHttpMock()
 {
     echo 'Stoping http mock server' . PHP_EOL;
     $this->server->stop();
 }