Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
WorkingDirectory.php
Go to the documentation of this file.
1 <?php
11 
13 {
17  private $_currentWorkingDir;
18 
25  public function startTest(\PHPUnit\Framework\TestCase $test)
26  {
27  $this->_currentWorkingDir = getcwd();
28  }
29 
36  public function endTest(\PHPUnit\Framework\TestCase $test)
37  {
38  if (getcwd() != $this->_currentWorkingDir) {
39  chdir($this->_currentWorkingDir);
40  }
41  }
42 }
startTest(\PHPUnit\Framework\TestCase $test)
endTest(\PHPUnit\Framework\TestCase $test)