Skip to content

Commit de97dff

Browse files
author
Serhiy Shkolyarenko
committed
MAGETWO-40822: [PHP7] Incompatible tests
fixed mess detector test
1 parent 043a32c commit de97dff

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

dev/tests/static/framework/tests/unit/testsuite/Magento/TestFramework/CodingStandard/Tool/CodeMessDetectorTest.php

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,8 @@ public function testCanRun()
1414
'some/report/file.xml'
1515
);
1616

17-
/** TODO: Remove provided check after PHPMD will support PHP version 7 */
18-
$isPhpVersionSupported = version_compare(
19-
'7.0.0',
20-
preg_replace('#^([^~+-]+).*$#', '$1', PHP_VERSION),
21-
'>'
22-
);
23-
2417
$this->assertEquals(
25-
class_exists('PHPMD\TextUI\Command') && $isPhpVersionSupported,
18+
class_exists('PHPMD\TextUI\Command'),
2619
$messDetector->canRun()
2720
);
2821
}

0 commit comments

Comments
 (0)