function BuildTestBase::stopServer
Same name in other branches
- 8.9.x core/tests/Drupal/BuildTests/Framework/BuildTestBase.php \Drupal\BuildTests\Framework\BuildTestBase::stopServer()
- 10 core/tests/Drupal/BuildTests/Framework/BuildTestBase.php \Drupal\BuildTests\Framework\BuildTestBase::stopServer()
- 11.x 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 459
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();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.