Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
magento2-base
dev
tests
integration
framework
Magento
TestFramework
Isolation
WorkingDirectory.php
Go to the documentation of this file.
1
<?php
10
namespace
Magento\TestFramework\Isolation
;
11
12
class
WorkingDirectory
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
}
Magento\TestFramework\Isolation\WorkingDirectory
Definition:
WorkingDirectory.php:12
Magento\TestFramework\Isolation\WorkingDirectory\startTest
startTest(\PHPUnit\Framework\TestCase $test)
Definition:
WorkingDirectory.php:25
Magento\TestFramework\Isolation
Definition:
AppConfig.php:7
Magento\TestFramework\Isolation\WorkingDirectory\endTest
endTest(\PHPUnit\Framework\TestCase $test)
Definition:
WorkingDirectory.php:36