Skip to content

Commit e9f65d6

Browse files
committed
Fixed how path is checked in ClassesTest to make it Windows-compatible
1 parent 760bb52 commit e9f65d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dev/tests/static/testsuite/Magento/Test/Integrity/ClassesTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ public function testClassReferences()
290290
function ($file) {
291291
$relativePath = str_replace(BP, "", $file);
292292
// Due to the examples given with the regex patterns, we skip this test file itself
293-
if ($relativePath == "/dev/tests/static/testsuite/Magento/Test/Integrity/ClassesTest.php") {
293+
if (preg_match('/\/dev\/tests\/static\/testsuite\/Magento\/Test\/Integrity\/ClassesTest.php$/', $relativePath)) {
294294
return;
295295
}
296296
$contents = file_get_contents($file);

0 commit comments

Comments
 (0)