1
1
<?php
2
2
/**
3
- * Scan source code for incorrect or undeclared modules dependencies
4
- *
5
3
* Copyright © Magento, Inc. All rights reserved.
6
4
* See COPYING.txt for license details.
7
- *
8
5
*/
9
6
namespace Magento \Test \Integrity ;
10
7
29
26
use Magento \TestFramework \Dependency \VirtualType \VirtualTypeMapper ;
30
27
31
28
/**
29
+ * Scan source code for incorrect or undeclared modules dependencies
30
+ *
32
31
* @SuppressWarnings(PHPMD.ExcessiveClassComplexity)
33
32
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
34
33
* @SuppressWarnings(PHPMD.TooManyFields)
@@ -38,32 +37,32 @@ class DependencyTest extends \PHPUnit\Framework\TestCase
38
37
/**
39
38
* Soft dependency between modules
40
39
*/
41
- const TYPE_SOFT = 'soft ' ;
40
+ public const TYPE_SOFT = 'soft ' ;
42
41
43
42
/**
44
43
* Hard dependency between modules
45
44
*/
46
- const TYPE_HARD = 'hard ' ;
45
+ public const TYPE_HARD = 'hard ' ;
47
46
48
47
/**
49
48
* The identifier of dependency for mapping.
50
49
*/
51
- const MAP_TYPE_DECLARED = 'declared ' ;
50
+ public const MAP_TYPE_DECLARED = 'declared ' ;
52
51
53
52
/**
54
53
* The identifier of dependency for mapping.
55
54
*/
56
- const MAP_TYPE_FOUND = 'found ' ;
55
+ public const MAP_TYPE_FOUND = 'found ' ;
57
56
58
57
/**
59
58
* The identifier of dependency for mapping.
60
59
*/
61
- const MAP_TYPE_REDUNDANT = 'redundant ' ;
60
+ public const MAP_TYPE_REDUNDANT = 'redundant ' ;
62
61
63
62
/**
64
63
* Count of directories in path
65
64
*/
66
- const DIR_PATH_COUNT = 4 ;
65
+ public const DIR_PATH_COUNT = 4 ;
67
66
68
67
/**
69
68
* List of config.xml files by modules
@@ -163,8 +162,6 @@ class DependencyTest extends \PHPUnit\Framework\TestCase
163
162
private static $ routesWhitelist = null ;
164
163
165
164
/**
166
- * Redundant dependencies whitelist
167
- *
168
165
* @var array|null
169
166
*/
170
167
private static $ redundantDependenciesWhitelist = null ;
0 commit comments