Commit 43ea8433 authored by Ivan Chepurnyi's avatar Ivan Chepurnyi

Fix issue with version number that is larger than expected.

parent afa72920
...@@ -272,6 +272,7 @@ class EcomDev_PHPUnit_Constraint_Config_Resource_Script ...@@ -272,6 +272,7 @@ class EcomDev_PHPUnit_Constraint_Config_Resource_Script
if ($to !== null && version_compare($latestVersionFound, $to) === -1) { if ($to !== null && version_compare($latestVersionFound, $to) === -1) {
$expectedVersions[] = sprintf('%supgrade-%s-%s.php', $scriptPrefix, $latestVersionFound, $to); $expectedVersions[] = sprintf('%supgrade-%s-%s.php', $scriptPrefix, $latestVersionFound, $to);
} elseif ($to !== null && version_compare($latestVersionFound, $to) === 1 && $expectedVersions) { } elseif ($to !== null && version_compare($latestVersionFound, $to) === 1 && $expectedVersions) {
array_pop($actualVersions);
array_pop($expectedVersions); array_pop($expectedVersions);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment