File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
dev/tests/static/testsuite/Magento/Test/Legacy Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -44,9 +44,10 @@ public function testObsoleteResponseMethods()
44
44
function ($ file ) {
45
45
$ content = file_get_contents ($ file );
46
46
foreach ($ this ->obsoleteMethods as $ method ) {
47
+ $ quotedMethod = preg_quote ($ method , '/ ' );
47
48
$ this ->assertSame (
48
49
0 ,
49
- preg_match ('/(?<=[a-z\d_:]|->|function\s) ' . $ method . '\s*\(/iS ' , $ content ),
50
+ preg_match ('/(?<=[a-z\d_:]|->|function\s) ' . $ quotedMethod . '\s*\(/iS ' , $ content ),
50
51
"File: $ file \nContains obsolete method: $ method . "
51
52
);
52
53
}
@@ -66,7 +67,8 @@ public function modulesFilesDataProvider()
66
67
67
68
foreach ($ this ->getFilesData ('whitelist/refactored_modules* ' ) as $ refactoredFolder ) {
68
69
$ files = \Magento \Framework \Test \Utility \Files::init ()->getFiles (
69
- [$ this ->appPath . $ refactoredFolder ], '*.php '
70
+ [$ this ->appPath . $ refactoredFolder ],
71
+ '*.php '
70
72
);
71
73
$ filesList = array_merge ($ filesList , $ files );
72
74
}
You can’t perform that action at this time.
0 commit comments