Skip to content

Commit

Permalink
Fixed the version test since the latest release. Future releases shou…
Browse files Browse the repository at this point in the history
…ld update the digits in the loops to match the version vector, except the last part.
  • Loading branch information
boenrobot committed Jan 17, 2023
1 parent d48a33b commit 5c5eb1b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/Zend/VersionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ public function testVersionCompare()
$expect = -1;
// unit test breaks if ZF version > 1.x
for ($i = 0; $i <= 1; $i++) {
for ($j = 0; $j <= 21; $j++) {
for ($k = 0; $k < 20; $k++) {
for ($j = 0; $j <= 22; $j++) {
for ($k = 0; $k <= 99; $k++) {
foreach (['dev', 'pr', 'PR', 'alpha', 'a1', 'a2', 'beta', 'b1', 'b2', 'RC', 'RC1', 'RC2', 'RC3', '', 'pl1', 'PL1'] as $rel) {
$ver = "$i.$j.$k$rel";
$normalizedVersion = strtolower(Zend_Version::VERSION);
Expand Down

0 comments on commit 5c5eb1b

Please sign in to comment.