From 7ed2d57d81b5bfedd7f9da30e89aab4046edfdee Mon Sep 17 00:00:00 2001 From: Laurent Laville Date: Tue, 29 Sep 2020 15:51:23 +0000 Subject: [PATCH] change php.min to 4.0.0 to avoid false results in other context that solve issue gh-275 --- src/Bartlett/CompatInfo/DataCollector/VersionDataCollector.php | 2 +- tests/Reference/IssueTest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Bartlett/CompatInfo/DataCollector/VersionDataCollector.php b/src/Bartlett/CompatInfo/DataCollector/VersionDataCollector.php index 9cf92678..c917b7bd 100644 --- a/src/Bartlett/CompatInfo/DataCollector/VersionDataCollector.php +++ b/src/Bartlett/CompatInfo/DataCollector/VersionDataCollector.php @@ -85,7 +85,7 @@ public function collect(array $nodes): array // @see https://github.com/bovigo/vfsStream/blob/v1.6.0/src/test/php/org/bovigo/vfs/vfsStreamZipTestCase.php#L39 $versions['ext.min'] = '0.1.0'; $versions['ext.max'] = $versions['php.max'] = ''; - $versions['php.min'] = '5.3.0'; + $versions['php.min'] = '4.0.0'; } $this->conditions = [sprintf('%s(%s)', $item['id'], $item['versions']['opt.name']) => $versions]; diff --git a/tests/Reference/IssueTest.php b/tests/Reference/IssueTest.php index 60e1ccea..2dc859bc 100644 --- a/tests/Reference/IssueTest.php +++ b/tests/Reference/IssueTest.php @@ -146,7 +146,7 @@ public function testRegressionGH275() $extensions['zip']['ext.max'] ); $this->assertEquals( - '5.3.0', + '4.0.0', $extensions['zip']['php.min'] ); $this->assertEquals(