protected function BuildTestBase::stopServer in Drupal 9
Same name and namespace in other branches
- 8 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 442
Class
- BuildTestBase
- Provides a workspace to test build processes.
Namespace
Drupal\BuildTests\FrameworkCode
protected function stopServer() {
if (!empty($this->serverProcess)) {
$this->serverProcess
->stop();
}
$this->serverProcess = NULL;
$this->serverDocroot = NULL;
$this->hostPort = NULL;
$this
->initMink();
}