File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change 3
3
* Copyright © Magento, Inc. All rights reserved.
4
4
* See COPYING.txt for license details.
5
5
*/
6
+ declare (strict_types=1 );
6
7
7
8
namespace tests \unit \Util ;
8
9
9
- use AspectMock \Test as AspectMock ;
10
10
use PHPUnit \Framework \TestCase ;
11
11
12
12
/**
13
13
* Class MagentoTestCase
14
14
*/
15
15
class MagentoTestCase extends TestCase
16
16
{
17
+ /**
18
+ * @inheritDoc
19
+ */
17
20
public static function setUpBeforeClass (): void
18
21
{
19
- if (!self :: fileExists (DOCS_OUTPUT_DIR )) {
22
+ if (!file_exists (DOCS_OUTPUT_DIR )) {
20
23
mkdir (DOCS_OUTPUT_DIR , 0755 , true );
21
24
}
25
+
22
26
parent ::setUpBeforeClass ();
23
27
}
24
28
25
29
/**
26
- * Teardown for removing AspectMock Double References
27
- * @return void
30
+ * @inheritDoc
28
31
*/
29
32
public static function tearDownAfterClass (): void
30
33
{
31
- AspectMock::clean ();
32
34
array_map ('unlink ' , glob (DOCS_OUTPUT_DIR . DIRECTORY_SEPARATOR . "* " ));
35
+
33
36
if (file_exists (DOCS_OUTPUT_DIR )) {
34
37
rmdir (DOCS_OUTPUT_DIR );
35
38
}
You can’t perform that action at this time.
0 commit comments