Skip to content

Commit 9be2141

Browse files
author
Olga Kopylova
committed
Merge remote-tracking branch 'origin/MAGETWO-23407-memory-usage-test' into PR_Branch
2 parents 249ad65 + 2637baf commit 9be2141

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

dev/tests/integration/framework/Magento/TestFramework/ObjectManager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public function clearCache()
3939
{
4040
foreach ($this->_classesToDestruct as $className) {
4141
if (isset($this->_sharedInstances[$className])) {
42-
$this->_sharedInstances[$className]->__destruct();
42+
$this->_sharedInstances[$className] = null;
4343
}
4444
}
4545

dev/tests/integration/phpunit.xml.dist

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313
<!-- Test suites definition -->
1414
<testsuites>
1515
<!-- Memory tests run first to prevent influence of other tests on accuracy of memory measurements -->
16-
<!--<testsuite name="Memory Usage Tests">-->
17-
<!--<file>testsuite/Magento/MemoryUsageTest.php</file>-->
18-
<!--</testsuite>-->
16+
<testsuite name="Memory Usage Tests">
17+
<file>testsuite/Magento/MemoryUsageTest.php</file>
18+
</testsuite>
1919
<testsuite name="Magento Integration Tests">
2020
<directory suffix="Test.php">testsuite</directory>
2121
<exclude>testsuite/Magento/Test/Integrity</exclude>

0 commit comments

Comments
 (0)