function BuildTestBase::stopServer

Same name and namespace in other branches
  1. 11.x core/tests/Drupal/BuildTests/Framework/BuildTestBase.php \Drupal\BuildTests\Framework\BuildTestBase::stopServer()

Stop the HTTP server, zero out all necessary variables.

File

core/tests/Drupal/BuildTests/Framework/BuildTestBase.php, line 459

Class

BuildTestBase
Provides a workspace to test build processes.

Namespace

Drupal\BuildTests\Framework

Code

protected function stopServer() {
  if (!empty($this->serverProcess)) {
    $this->serverProcess
      ->stop();
  }
  $this->serverProcess = NULL;
  $this->serverDocroot = NULL;
  $this->hostPort = NULL;
  $this->initMink();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.