Skip to content

Commit 7a6db9f

Browse files
author
Safwan Khan
committed
MAGETWO-25088: Static Obsolete Tests Don't Recognize Partial Namespaces
- Correcting a QA testcase failure.
1 parent 1c48919 commit 7a6db9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dev/tests/static/testsuite/Magento/Test/Legacy/ObsoleteCodeTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,7 @@ private function checkConstantWithClasspath($constant, $class, $replacement, $co
508508
$classRegex .= '|' . preg_quote(rtrim($regexClassPartialPath, '\\'));
509509
}
510510
// Checks condition when classpath is distributed over namespace and class definition
511-
$classRegexNamespaceClass = '/namespace\s+' . preg_quote('\\') . '?(' . $classRegex . ')(\s|;)(\r\n)+'
511+
$classRegexNamespaceClass = '/namespace\s+' . preg_quote('\\') . '?(' . $classRegex . ')(\s|;)(\r?\n)+'
512512
. 'class\s+' . preg_quote('\\') . '?(' . preg_quote(rtrim($classPartialPath, '\\')) . ')\s*/';
513513
$matchNamespaceClass = preg_match($classRegexNamespaceClass, $content);
514514
$constantRegexPartial = '/\b(?P<classWithConst>([a-zA-Z0-9_' . preg_quote('\\') . ']*))('

0 commit comments

Comments
 (0)