| Conditions | 140 |
| Total Lines | 411 |
| Code Lines | 238 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
Small methods make your code easier to understand, in particular if combined with a good name. Besides, if your method is small, finding a good name is usually much easier.
For example, if you find yourself adding comments to a method's body, this is usually a good sign to extract the commented part to a new method, and use the comment as a starting point when coming up with a good name for this new method.
Commonly applied refactorings include:
If many parameters/temporary variables are present:
| 1 | <?php |
||
| 861 | protected function handleConfiguration(array &$arguments): void |
||
| 862 | { |
||
| 863 | if (isset($arguments['configuration']) && |
||
| 864 | !$arguments['configuration'] instanceof Configuration) { |
||
| 865 | $arguments['configuration'] = Configuration::getInstance( |
||
| 866 | $arguments['configuration'] |
||
| 867 | ); |
||
| 868 | } |
||
| 869 | |||
| 870 | $arguments['debug'] = $arguments['debug'] ?? false; |
||
| 871 | $arguments['filter'] = $arguments['filter'] ?? false; |
||
| 872 | $arguments['listeners'] = $arguments['listeners'] ?? []; |
||
| 873 | |||
| 874 | if (isset($arguments['configuration'])) { |
||
| 875 | $arguments['configuration']->handlePHPConfiguration(); |
||
| 876 | |||
| 877 | $phpunitConfiguration = $arguments['configuration']->getPHPUnitConfiguration(); |
||
| 878 | |||
| 879 | if (isset($phpunitConfiguration['backupGlobals']) && !isset($arguments['backupGlobals'])) { |
||
| 880 | $arguments['backupGlobals'] = $phpunitConfiguration['backupGlobals']; |
||
| 881 | } |
||
| 882 | |||
| 883 | if (isset($phpunitConfiguration['backupStaticAttributes']) && !isset($arguments['backupStaticAttributes'])) { |
||
| 884 | $arguments['backupStaticAttributes'] = $phpunitConfiguration['backupStaticAttributes']; |
||
| 885 | } |
||
| 886 | |||
| 887 | if (isset($phpunitConfiguration['beStrictAboutChangesToGlobalState']) && !isset($arguments['beStrictAboutChangesToGlobalState'])) { |
||
| 888 | $arguments['beStrictAboutChangesToGlobalState'] = $phpunitConfiguration['beStrictAboutChangesToGlobalState']; |
||
| 889 | } |
||
| 890 | |||
| 891 | if (isset($phpunitConfiguration['bootstrap']) && !isset($arguments['bootstrap'])) { |
||
| 892 | $arguments['bootstrap'] = $phpunitConfiguration['bootstrap']; |
||
| 893 | } |
||
| 894 | |||
| 895 | if (isset($phpunitConfiguration['cacheResult']) && !isset($arguments['cacheResult'])) { |
||
| 896 | $arguments['cacheResult'] = $phpunitConfiguration['cacheResult']; |
||
| 897 | } |
||
| 898 | |||
| 899 | if (isset($phpunitConfiguration['cacheResultFile']) && !isset($arguments['cacheResultFile'])) { |
||
| 900 | $arguments['cacheResultFile'] = $phpunitConfiguration['cacheResultFile']; |
||
| 901 | } |
||
| 902 | |||
| 903 | if (isset($phpunitConfiguration['cacheTokens']) && !isset($arguments['cacheTokens'])) { |
||
| 904 | $arguments['cacheTokens'] = $phpunitConfiguration['cacheTokens']; |
||
| 905 | } |
||
| 906 | |||
| 907 | if (isset($phpunitConfiguration['cacheTokens']) && !isset($arguments['cacheTokens'])) { |
||
| 908 | $arguments['cacheTokens'] = $phpunitConfiguration['cacheTokens']; |
||
| 909 | } |
||
| 910 | |||
| 911 | if (isset($phpunitConfiguration['colors']) && !isset($arguments['colors'])) { |
||
| 912 | $arguments['colors'] = $phpunitConfiguration['colors']; |
||
| 913 | } |
||
| 914 | |||
| 915 | if (isset($phpunitConfiguration['convertDeprecationsToExceptions']) && !isset($arguments['convertDeprecationsToExceptions'])) { |
||
| 916 | $arguments['convertDeprecationsToExceptions'] = $phpunitConfiguration['convertDeprecationsToExceptions']; |
||
| 917 | } |
||
| 918 | |||
| 919 | if (isset($phpunitConfiguration['convertErrorsToExceptions']) && !isset($arguments['convertErrorsToExceptions'])) { |
||
| 920 | $arguments['convertErrorsToExceptions'] = $phpunitConfiguration['convertErrorsToExceptions']; |
||
| 921 | } |
||
| 922 | |||
| 923 | if (isset($phpunitConfiguration['convertNoticesToExceptions']) && !isset($arguments['convertNoticesToExceptions'])) { |
||
| 924 | $arguments['convertNoticesToExceptions'] = $phpunitConfiguration['convertNoticesToExceptions']; |
||
| 925 | } |
||
| 926 | |||
| 927 | if (isset($phpunitConfiguration['convertWarningsToExceptions']) && !isset($arguments['convertWarningsToExceptions'])) { |
||
| 928 | $arguments['convertWarningsToExceptions'] = $phpunitConfiguration['convertWarningsToExceptions']; |
||
| 929 | } |
||
| 930 | |||
| 931 | if (isset($phpunitConfiguration['processIsolation']) && !isset($arguments['processIsolation'])) { |
||
| 932 | $arguments['processIsolation'] = $phpunitConfiguration['processIsolation']; |
||
| 933 | } |
||
| 934 | |||
| 935 | if (isset($phpunitConfiguration['stopOnDefect']) && !isset($arguments['stopOnDefect'])) { |
||
| 936 | $arguments['stopOnDefect'] = $phpunitConfiguration['stopOnDefect']; |
||
| 937 | } |
||
| 938 | |||
| 939 | if (isset($phpunitConfiguration['stopOnError']) && !isset($arguments['stopOnError'])) { |
||
| 940 | $arguments['stopOnError'] = $phpunitConfiguration['stopOnError']; |
||
| 941 | } |
||
| 942 | |||
| 943 | if (isset($phpunitConfiguration['stopOnFailure']) && !isset($arguments['stopOnFailure'])) { |
||
| 944 | $arguments['stopOnFailure'] = $phpunitConfiguration['stopOnFailure']; |
||
| 945 | } |
||
| 946 | |||
| 947 | if (isset($phpunitConfiguration['stopOnWarning']) && !isset($arguments['stopOnWarning'])) { |
||
| 948 | $arguments['stopOnWarning'] = $phpunitConfiguration['stopOnWarning']; |
||
| 949 | } |
||
| 950 | |||
| 951 | if (isset($phpunitConfiguration['stopOnIncomplete']) && !isset($arguments['stopOnIncomplete'])) { |
||
| 952 | $arguments['stopOnIncomplete'] = $phpunitConfiguration['stopOnIncomplete']; |
||
| 953 | } |
||
| 954 | |||
| 955 | if (isset($phpunitConfiguration['stopOnRisky']) && !isset($arguments['stopOnRisky'])) { |
||
| 956 | $arguments['stopOnRisky'] = $phpunitConfiguration['stopOnRisky']; |
||
| 957 | } |
||
| 958 | |||
| 959 | if (isset($phpunitConfiguration['stopOnSkipped']) && !isset($arguments['stopOnSkipped'])) { |
||
| 960 | $arguments['stopOnSkipped'] = $phpunitConfiguration['stopOnSkipped']; |
||
| 961 | } |
||
| 962 | |||
| 963 | if (isset($phpunitConfiguration['failOnWarning']) && !isset($arguments['failOnWarning'])) { |
||
| 964 | $arguments['failOnWarning'] = $phpunitConfiguration['failOnWarning']; |
||
| 965 | } |
||
| 966 | |||
| 967 | if (isset($phpunitConfiguration['failOnRisky']) && !isset($arguments['failOnRisky'])) { |
||
| 968 | $arguments['failOnRisky'] = $phpunitConfiguration['failOnRisky']; |
||
| 969 | } |
||
| 970 | |||
| 971 | if (isset($phpunitConfiguration['timeoutForSmallTests']) && !isset($arguments['timeoutForSmallTests'])) { |
||
| 972 | $arguments['timeoutForSmallTests'] = $phpunitConfiguration['timeoutForSmallTests']; |
||
| 973 | } |
||
| 974 | |||
| 975 | if (isset($phpunitConfiguration['timeoutForMediumTests']) && !isset($arguments['timeoutForMediumTests'])) { |
||
| 976 | $arguments['timeoutForMediumTests'] = $phpunitConfiguration['timeoutForMediumTests']; |
||
| 977 | } |
||
| 978 | |||
| 979 | if (isset($phpunitConfiguration['timeoutForLargeTests']) && !isset($arguments['timeoutForLargeTests'])) { |
||
| 980 | $arguments['timeoutForLargeTests'] = $phpunitConfiguration['timeoutForLargeTests']; |
||
| 981 | } |
||
| 982 | |||
| 983 | if (isset($phpunitConfiguration['reportUselessTests']) && !isset($arguments['reportUselessTests'])) { |
||
| 984 | $arguments['reportUselessTests'] = $phpunitConfiguration['reportUselessTests']; |
||
| 985 | } |
||
| 986 | |||
| 987 | if (isset($phpunitConfiguration['strictCoverage']) && !isset($arguments['strictCoverage'])) { |
||
| 988 | $arguments['strictCoverage'] = $phpunitConfiguration['strictCoverage']; |
||
| 989 | } |
||
| 990 | |||
| 991 | if (isset($phpunitConfiguration['ignoreDeprecatedCodeUnitsFromCodeCoverage']) && !isset($arguments['ignoreDeprecatedCodeUnitsFromCodeCoverage'])) { |
||
| 992 | $arguments['ignoreDeprecatedCodeUnitsFromCodeCoverage'] = $phpunitConfiguration['ignoreDeprecatedCodeUnitsFromCodeCoverage']; |
||
| 993 | } |
||
| 994 | |||
| 995 | if (isset($phpunitConfiguration['disallowTestOutput']) && !isset($arguments['disallowTestOutput'])) { |
||
| 996 | $arguments['disallowTestOutput'] = $phpunitConfiguration['disallowTestOutput']; |
||
| 997 | } |
||
| 998 | |||
| 999 | if (isset($phpunitConfiguration['defaultTimeLimit']) && !isset($arguments['defaultTimeLimit'])) { |
||
| 1000 | $arguments['defaultTimeLimit'] = $phpunitConfiguration['defaultTimeLimit']; |
||
| 1001 | } |
||
| 1002 | |||
| 1003 | if (isset($phpunitConfiguration['enforceTimeLimit']) && !isset($arguments['enforceTimeLimit'])) { |
||
| 1004 | $arguments['enforceTimeLimit'] = $phpunitConfiguration['enforceTimeLimit']; |
||
| 1005 | } |
||
| 1006 | |||
| 1007 | if (isset($phpunitConfiguration['disallowTodoAnnotatedTests']) && !isset($arguments['disallowTodoAnnotatedTests'])) { |
||
| 1008 | $arguments['disallowTodoAnnotatedTests'] = $phpunitConfiguration['disallowTodoAnnotatedTests']; |
||
| 1009 | } |
||
| 1010 | |||
| 1011 | if (isset($phpunitConfiguration['beStrictAboutResourceUsageDuringSmallTests']) && !isset($arguments['beStrictAboutResourceUsageDuringSmallTests'])) { |
||
| 1012 | $arguments['beStrictAboutResourceUsageDuringSmallTests'] = $phpunitConfiguration['beStrictAboutResourceUsageDuringSmallTests']; |
||
| 1013 | } |
||
| 1014 | |||
| 1015 | if (isset($phpunitConfiguration['verbose']) && !isset($arguments['verbose'])) { |
||
| 1016 | $arguments['verbose'] = $phpunitConfiguration['verbose']; |
||
| 1017 | } |
||
| 1018 | |||
| 1019 | if (isset($phpunitConfiguration['reverseDefectList']) && !isset($arguments['reverseList'])) { |
||
| 1020 | $arguments['reverseList'] = $phpunitConfiguration['reverseDefectList']; |
||
| 1021 | } |
||
| 1022 | |||
| 1023 | if (isset($phpunitConfiguration['forceCoversAnnotation']) && !isset($arguments['forceCoversAnnotation'])) { |
||
| 1024 | $arguments['forceCoversAnnotation'] = $phpunitConfiguration['forceCoversAnnotation']; |
||
| 1025 | } |
||
| 1026 | |||
| 1027 | if (isset($phpunitConfiguration['disableCodeCoverageIgnore']) && !isset($arguments['disableCodeCoverageIgnore'])) { |
||
| 1028 | $arguments['disableCodeCoverageIgnore'] = $phpunitConfiguration['disableCodeCoverageIgnore']; |
||
| 1029 | } |
||
| 1030 | |||
| 1031 | if (isset($phpunitConfiguration['registerMockObjectsFromTestArgumentsRecursively']) && !isset($arguments['registerMockObjectsFromTestArgumentsRecursively'])) { |
||
| 1032 | $arguments['registerMockObjectsFromTestArgumentsRecursively'] = $phpunitConfiguration['registerMockObjectsFromTestArgumentsRecursively']; |
||
| 1033 | } |
||
| 1034 | |||
| 1035 | if (isset($phpunitConfiguration['executionOrder']) && !isset($arguments['executionOrder'])) { |
||
| 1036 | $arguments['executionOrder'] = $phpunitConfiguration['executionOrder']; |
||
| 1037 | } |
||
| 1038 | |||
| 1039 | if (isset($phpunitConfiguration['executionOrderDefects']) && !isset($arguments['executionOrderDefects'])) { |
||
| 1040 | $arguments['executionOrderDefects'] = $phpunitConfiguration['executionOrderDefects']; |
||
| 1041 | } |
||
| 1042 | |||
| 1043 | if (isset($phpunitConfiguration['resolveDependencies']) && !isset($arguments['resolveDependencies'])) { |
||
| 1044 | $arguments['resolveDependencies'] = $phpunitConfiguration['resolveDependencies']; |
||
| 1045 | } |
||
| 1046 | |||
| 1047 | $groupCliArgs = []; |
||
| 1048 | |||
| 1049 | if (!empty($arguments['groups'])) { |
||
| 1050 | $groupCliArgs = $arguments['groups']; |
||
| 1051 | } |
||
| 1052 | |||
| 1053 | $groupConfiguration = $arguments['configuration']->getGroupConfiguration(); |
||
| 1054 | |||
| 1055 | if (!empty($groupConfiguration['include']) && !isset($arguments['groups'])) { |
||
| 1056 | $arguments['groups'] = $groupConfiguration['include']; |
||
| 1057 | } |
||
| 1058 | |||
| 1059 | if (!empty($groupConfiguration['exclude']) && !isset($arguments['excludeGroups'])) { |
||
| 1060 | $arguments['excludeGroups'] = \array_diff($groupConfiguration['exclude'], $groupCliArgs); |
||
| 1061 | } |
||
| 1062 | |||
| 1063 | foreach ($arguments['configuration']->getExtensionConfiguration() as $extension) { |
||
| 1064 | if (!\class_exists($extension['class'], false) && $extension['file'] !== '') { |
||
| 1065 | require_once $extension['file']; |
||
| 1066 | } |
||
| 1067 | |||
| 1068 | if (!\class_exists($extension['class'])) { |
||
| 1069 | throw new Exception( |
||
| 1070 | \sprintf( |
||
| 1071 | 'Class "%s" does not exist', |
||
| 1072 | $extension['class'] |
||
| 1073 | ) |
||
| 1074 | ); |
||
| 1075 | } |
||
| 1076 | |||
| 1077 | $extensionClass = new ReflectionClass($extension['class']); |
||
| 1078 | |||
| 1079 | if (!$extensionClass->implementsInterface(Hook::class)) { |
||
| 1080 | throw new Exception( |
||
| 1081 | \sprintf( |
||
| 1082 | 'Class "%s" does not implement a PHPUnit\Runner\Hook interface', |
||
| 1083 | $extension['class'] |
||
| 1084 | ) |
||
| 1085 | ); |
||
| 1086 | } |
||
| 1087 | |||
| 1088 | if (\count($extension['arguments']) == 0) { |
||
| 1089 | $this->extensions[] = $extensionClass->newInstance(); |
||
| 1090 | } else { |
||
| 1091 | $this->extensions[] = $extensionClass->newInstanceArgs( |
||
| 1092 | $extension['arguments'] |
||
| 1093 | ); |
||
| 1094 | } |
||
| 1095 | } |
||
| 1096 | |||
| 1097 | foreach ($arguments['configuration']->getListenerConfiguration() as $listener) { |
||
| 1098 | if (!\class_exists($listener['class'], false) && |
||
| 1099 | $listener['file'] !== '') { |
||
| 1100 | require_once $listener['file']; |
||
| 1101 | } |
||
| 1102 | |||
| 1103 | if (!\class_exists($listener['class'])) { |
||
| 1104 | throw new Exception( |
||
| 1105 | \sprintf( |
||
| 1106 | 'Class "%s" does not exist', |
||
| 1107 | $listener['class'] |
||
| 1108 | ) |
||
| 1109 | ); |
||
| 1110 | } |
||
| 1111 | |||
| 1112 | $listenerClass = new ReflectionClass($listener['class']); |
||
| 1113 | |||
| 1114 | if (!$listenerClass->implementsInterface(TestListener::class)) { |
||
| 1115 | throw new Exception( |
||
| 1116 | \sprintf( |
||
| 1117 | 'Class "%s" does not implement the PHPUnit\Framework\TestListener interface', |
||
| 1118 | $listener['class'] |
||
| 1119 | ) |
||
| 1120 | ); |
||
| 1121 | } |
||
| 1122 | |||
| 1123 | if (\count($listener['arguments']) == 0) { |
||
| 1124 | $listener = new $listener['class']; |
||
| 1125 | } else { |
||
| 1126 | $listener = $listenerClass->newInstanceArgs( |
||
| 1127 | $listener['arguments'] |
||
| 1128 | ); |
||
| 1129 | } |
||
| 1130 | |||
| 1131 | $arguments['listeners'][] = $listener; |
||
| 1132 | } |
||
| 1133 | |||
| 1134 | $loggingConfiguration = $arguments['configuration']->getLoggingConfiguration(); |
||
| 1135 | |||
| 1136 | if (isset($loggingConfiguration['coverage-clover']) && !isset($arguments['coverageClover'])) { |
||
| 1137 | $arguments['coverageClover'] = $loggingConfiguration['coverage-clover']; |
||
| 1138 | } |
||
| 1139 | |||
| 1140 | if (isset($loggingConfiguration['coverage-crap4j']) && !isset($arguments['coverageCrap4J'])) { |
||
| 1141 | $arguments['coverageCrap4J'] = $loggingConfiguration['coverage-crap4j']; |
||
| 1142 | |||
| 1143 | if (isset($loggingConfiguration['crap4jThreshold']) && !isset($arguments['crap4jThreshold'])) { |
||
| 1144 | $arguments['crap4jThreshold'] = $loggingConfiguration['crap4jThreshold']; |
||
| 1145 | } |
||
| 1146 | } |
||
| 1147 | |||
| 1148 | if (isset($loggingConfiguration['coverage-html']) && !isset($arguments['coverageHtml'])) { |
||
| 1149 | if (isset($loggingConfiguration['lowUpperBound']) && !isset($arguments['reportLowUpperBound'])) { |
||
| 1150 | $arguments['reportLowUpperBound'] = $loggingConfiguration['lowUpperBound']; |
||
| 1151 | } |
||
| 1152 | |||
| 1153 | if (isset($loggingConfiguration['highLowerBound']) && !isset($arguments['reportHighLowerBound'])) { |
||
| 1154 | $arguments['reportHighLowerBound'] = $loggingConfiguration['highLowerBound']; |
||
| 1155 | } |
||
| 1156 | |||
| 1157 | $arguments['coverageHtml'] = $loggingConfiguration['coverage-html']; |
||
| 1158 | } |
||
| 1159 | |||
| 1160 | if (isset($loggingConfiguration['coverage-php']) && !isset($arguments['coveragePHP'])) { |
||
| 1161 | $arguments['coveragePHP'] = $loggingConfiguration['coverage-php']; |
||
| 1162 | } |
||
| 1163 | |||
| 1164 | if (isset($loggingConfiguration['coverage-text']) && !isset($arguments['coverageText'])) { |
||
| 1165 | $arguments['coverageText'] = $loggingConfiguration['coverage-text']; |
||
| 1166 | |||
| 1167 | if (isset($loggingConfiguration['coverageTextShowUncoveredFiles'])) { |
||
| 1168 | $arguments['coverageTextShowUncoveredFiles'] = $loggingConfiguration['coverageTextShowUncoveredFiles']; |
||
| 1169 | } else { |
||
| 1170 | $arguments['coverageTextShowUncoveredFiles'] = false; |
||
| 1171 | } |
||
| 1172 | |||
| 1173 | if (isset($loggingConfiguration['coverageTextShowOnlySummary'])) { |
||
| 1174 | $arguments['coverageTextShowOnlySummary'] = $loggingConfiguration['coverageTextShowOnlySummary']; |
||
| 1175 | } else { |
||
| 1176 | $arguments['coverageTextShowOnlySummary'] = false; |
||
| 1177 | } |
||
| 1178 | } |
||
| 1179 | |||
| 1180 | if (isset($loggingConfiguration['coverage-xml']) && !isset($arguments['coverageXml'])) { |
||
| 1181 | $arguments['coverageXml'] = $loggingConfiguration['coverage-xml']; |
||
| 1182 | } |
||
| 1183 | |||
| 1184 | if (isset($loggingConfiguration['plain'])) { |
||
| 1185 | $arguments['listeners'][] = new ResultPrinter( |
||
| 1186 | $loggingConfiguration['plain'], |
||
| 1187 | true |
||
| 1188 | ); |
||
| 1189 | } |
||
| 1190 | |||
| 1191 | if (isset($loggingConfiguration['teamcity']) && !isset($arguments['teamcityLogfile'])) { |
||
| 1192 | $arguments['teamcityLogfile'] = $loggingConfiguration['teamcity']; |
||
| 1193 | } |
||
| 1194 | |||
| 1195 | if (isset($loggingConfiguration['junit']) && !isset($arguments['junitLogfile'])) { |
||
| 1196 | $arguments['junitLogfile'] = $loggingConfiguration['junit']; |
||
| 1197 | } |
||
| 1198 | |||
| 1199 | if (isset($loggingConfiguration['testdox-html']) && !isset($arguments['testdoxHTMLFile'])) { |
||
| 1200 | $arguments['testdoxHTMLFile'] = $loggingConfiguration['testdox-html']; |
||
| 1201 | } |
||
| 1202 | |||
| 1203 | if (isset($loggingConfiguration['testdox-text']) && !isset($arguments['testdoxTextFile'])) { |
||
| 1204 | $arguments['testdoxTextFile'] = $loggingConfiguration['testdox-text']; |
||
| 1205 | } |
||
| 1206 | |||
| 1207 | if (isset($loggingConfiguration['testdox-xml']) && !isset($arguments['testdoxXMLFile'])) { |
||
| 1208 | $arguments['testdoxXMLFile'] = $loggingConfiguration['testdox-xml']; |
||
| 1209 | } |
||
| 1210 | |||
| 1211 | $testdoxGroupConfiguration = $arguments['configuration']->getTestdoxGroupConfiguration(); |
||
| 1212 | |||
| 1213 | if (isset($testdoxGroupConfiguration['include']) && |
||
| 1214 | !isset($arguments['testdoxGroups'])) { |
||
| 1215 | $arguments['testdoxGroups'] = $testdoxGroupConfiguration['include']; |
||
| 1216 | } |
||
| 1217 | |||
| 1218 | if (isset($testdoxGroupConfiguration['exclude']) && |
||
| 1219 | !isset($arguments['testdoxExcludeGroups'])) { |
||
| 1220 | $arguments['testdoxExcludeGroups'] = $testdoxGroupConfiguration['exclude']; |
||
| 1221 | } |
||
| 1222 | } |
||
| 1223 | |||
| 1224 | $arguments['addUncoveredFilesFromWhitelist'] = $arguments['addUncoveredFilesFromWhitelist'] ?? true; |
||
| 1225 | $arguments['backupGlobals'] = $arguments['backupGlobals'] ?? null; |
||
| 1226 | $arguments['backupStaticAttributes'] = $arguments['backupStaticAttributes'] ?? null; |
||
| 1227 | $arguments['beStrictAboutChangesToGlobalState'] = $arguments['beStrictAboutChangesToGlobalState'] ?? null; |
||
| 1228 | $arguments['beStrictAboutResourceUsageDuringSmallTests'] = $arguments['beStrictAboutResourceUsageDuringSmallTests'] ?? false; |
||
| 1229 | $arguments['cacheResult'] = $arguments['cacheResult'] ?? false; |
||
| 1230 | $arguments['cacheTokens'] = $arguments['cacheTokens'] ?? false; |
||
| 1231 | $arguments['colors'] = $arguments['colors'] ?? ResultPrinter::COLOR_DEFAULT; |
||
| 1232 | $arguments['columns'] = $arguments['columns'] ?? 80; |
||
| 1233 | $arguments['convertDeprecationsToExceptions'] = $arguments['convertDeprecationsToExceptions'] ?? true; |
||
| 1234 | $arguments['convertErrorsToExceptions'] = $arguments['convertErrorsToExceptions'] ?? true; |
||
| 1235 | $arguments['convertNoticesToExceptions'] = $arguments['convertNoticesToExceptions'] ?? true; |
||
| 1236 | $arguments['convertWarningsToExceptions'] = $arguments['convertWarningsToExceptions'] ?? true; |
||
| 1237 | $arguments['crap4jThreshold'] = $arguments['crap4jThreshold'] ?? 30; |
||
| 1238 | $arguments['disallowTestOutput'] = $arguments['disallowTestOutput'] ?? false; |
||
| 1239 | $arguments['disallowTodoAnnotatedTests'] = $arguments['disallowTodoAnnotatedTests'] ?? false; |
||
| 1240 | $arguments['defaultTimeLimit'] = $arguments['defaultTimeLimit'] ?? 0; |
||
| 1241 | $arguments['enforceTimeLimit'] = $arguments['enforceTimeLimit'] ?? false; |
||
| 1242 | $arguments['excludeGroups'] = $arguments['excludeGroups'] ?? []; |
||
| 1243 | $arguments['failOnRisky'] = $arguments['failOnRisky'] ?? false; |
||
| 1244 | $arguments['failOnWarning'] = $arguments['failOnWarning'] ?? false; |
||
| 1245 | $arguments['executionOrderDefects'] = $arguments['executionOrderDefects'] ?? TestSuiteSorter::ORDER_DEFAULT; |
||
| 1246 | $arguments['groups'] = $arguments['groups'] ?? []; |
||
| 1247 | $arguments['processIsolation'] = $arguments['processIsolation'] ?? false; |
||
| 1248 | $arguments['processUncoveredFilesFromWhitelist'] = $arguments['processUncoveredFilesFromWhitelist'] ?? false; |
||
| 1249 | $arguments['randomOrderSeed'] = $arguments['randomOrderSeed'] ?? \time(); |
||
| 1250 | $arguments['registerMockObjectsFromTestArgumentsRecursively'] = $arguments['registerMockObjectsFromTestArgumentsRecursively'] ?? false; |
||
| 1251 | $arguments['repeat'] = $arguments['repeat'] ?? false; |
||
| 1252 | $arguments['reportHighLowerBound'] = $arguments['reportHighLowerBound'] ?? 90; |
||
| 1253 | $arguments['reportLowUpperBound'] = $arguments['reportLowUpperBound'] ?? 50; |
||
| 1254 | $arguments['reportUselessTests'] = $arguments['reportUselessTests'] ?? true; |
||
| 1255 | $arguments['reverseList'] = $arguments['reverseList'] ?? false; |
||
| 1256 | $arguments['executionOrder'] = $arguments['executionOrder'] ?? TestSuiteSorter::ORDER_DEFAULT; |
||
| 1257 | $arguments['resolveDependencies'] = $arguments['resolveDependencies'] ?? false; |
||
| 1258 | $arguments['stopOnError'] = $arguments['stopOnError'] ?? false; |
||
| 1259 | $arguments['stopOnFailure'] = $arguments['stopOnFailure'] ?? false; |
||
| 1260 | $arguments['stopOnIncomplete'] = $arguments['stopOnIncomplete'] ?? false; |
||
| 1261 | $arguments['stopOnRisky'] = $arguments['stopOnRisky'] ?? false; |
||
| 1262 | $arguments['stopOnSkipped'] = $arguments['stopOnSkipped'] ?? false; |
||
| 1263 | $arguments['stopOnWarning'] = $arguments['stopOnWarning'] ?? false; |
||
| 1264 | $arguments['stopOnDefect'] = $arguments['stopOnDefect'] ?? false; |
||
| 1265 | $arguments['strictCoverage'] = $arguments['strictCoverage'] ?? false; |
||
| 1266 | $arguments['testdoxExcludeGroups'] = $arguments['testdoxExcludeGroups'] ?? []; |
||
| 1267 | $arguments['testdoxGroups'] = $arguments['testdoxGroups'] ?? []; |
||
| 1268 | $arguments['timeoutForLargeTests'] = $arguments['timeoutForLargeTests'] ?? 60; |
||
| 1269 | $arguments['timeoutForMediumTests'] = $arguments['timeoutForMediumTests'] ?? 10; |
||
| 1270 | $arguments['timeoutForSmallTests'] = $arguments['timeoutForSmallTests'] ?? 1; |
||
| 1271 | $arguments['verbose'] = $arguments['verbose'] ?? false; |
||
| 1272 | } |
||
| 1329 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths