Skip to content

Commit c43042d

Browse files
committed
33582: Eliminated AspectMock from MagentoTestCase.php
1 parent 9dfd3e3 commit c43042d

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

dev/tests/unit/Util/MagentoTestCase.php

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,33 +3,36 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
declare(strict_types=1);
67

78
namespace tests\unit\Util;
89

9-
use AspectMock\Test as AspectMock;
1010
use PHPUnit\Framework\TestCase;
1111

1212
/**
1313
* Class MagentoTestCase
1414
*/
1515
class MagentoTestCase extends TestCase
1616
{
17+
/**
18+
* @inheritDoc
19+
*/
1720
public static function setUpBeforeClass(): void
1821
{
19-
if (!self::fileExists(DOCS_OUTPUT_DIR)) {
22+
if (!file_exists(DOCS_OUTPUT_DIR)) {
2023
mkdir(DOCS_OUTPUT_DIR, 0755, true);
2124
}
25+
2226
parent::setUpBeforeClass();
2327
}
2428

2529
/**
26-
* Teardown for removing AspectMock Double References
27-
* @return void
30+
* @inheritDoc
2831
*/
2932
public static function tearDownAfterClass(): void
3033
{
31-
AspectMock::clean();
3234
array_map('unlink', glob(DOCS_OUTPUT_DIR . DIRECTORY_SEPARATOR . "*"));
35+
3336
if (file_exists(DOCS_OUTPUT_DIR)) {
3437
rmdir(DOCS_OUTPUT_DIR);
3538
}

0 commit comments

Comments
 (0)