function BuildTestBase::stopServer

Same name and namespace in other branches
  1. 9 core/tests/Drupal/BuildTests/Framework/BuildTestBase.php \Drupal\BuildTests\Framework\BuildTestBase::stopServer()
  2. 8.9.x core/tests/Drupal/BuildTests/Framework/BuildTestBase.php \Drupal\BuildTests\Framework\BuildTestBase::stopServer()
  3. 10 core/tests/Drupal/BuildTests/Framework/BuildTestBase.php \Drupal\BuildTests\Framework\BuildTestBase::stopServer()

Stop the HTTP server, zero out all necessary variables.

2 calls to BuildTestBase::stopServer()
BuildTestBase::standUpServer in core/tests/Drupal/BuildTests/Framework/BuildTestBase.php
Makes a local test server using PHP's internal HTTP server.
BuildTestBase::tearDown in core/tests/Drupal/BuildTests/Framework/BuildTestBase.php

File

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

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.