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
Workaround
Cleanup
TestCaseProperties.php
Go to the documentation of this file.
1
<?php
10
namespace
Magento\TestFramework\Workaround\Cleanup
;
11
12
class
TestCaseProperties
13
{
19
public
function
endTestSuite
(\PHPUnit\Framework\TestSuite $suite)
20
{
21
$tests = $suite->tests();
22
23
foreach
($tests as $test) {
24
$reflectionClass
= new \ReflectionClass($test);
25
$properties
=
$reflectionClass
->getProperties();
26
foreach
(
$properties
as $property) {
27
$property->setAccessible(
true
);
28
$value
= $property->getValue($test);
29
if
(is_object(
$value
) && method_exists(
$value
,
'__destruct'
) && is_callable([
$value
,
'__destruct'
])) {
30
$value
->__destruct();
31
}
32
$property->setValue($test,
null
);
33
}
34
}
35
}
36
}
Magento\TestFramework\Workaround\Cleanup\TestCaseProperties
Definition:
TestCaseProperties.php:12
Magento\TestFramework\Workaround\Cleanup
Definition:
StaticProperties.php:10
$value
$value
Definition:
gender.phtml:16
$reflectionClass
$reflectionClass
Definition:
categories.php:25
Magento\TestFramework\Workaround\Cleanup\TestCaseProperties\endTestSuite
endTestSuite(\PHPUnit\Framework\TestSuite $suite)
Definition:
TestCaseProperties.php:19
$properties
$properties
Definition:
categories.php:26