diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2021-01-27 15:14:52 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-27 15:14:52 +0100 |
commit | 3a9c7f99f632f973caaf6a7aca5ca9294bb11db3 (patch) | |
tree | e909e1964868f5985c539cf5e53e3ad70a39d20d /tests | |
parent | e0f0e6e41a47dbdb5fbe3527dc923dfbc1ea37e1 (diff) | |
parent | b4f71ccf4dd43332ab92eb860604c2308cb36a9d (diff) | |
download | nextcloud-server-3a9c7f99f632f973caaf6a7aca5ca9294bb11db3.tar.gz nextcloud-server-3a9c7f99f632f973caaf6a7aca5ca9294bb11db3.zip |
Merge pull request #25335 from nextcloud/fix/app-fetcher-php-compat-comparison
Fix/app fetcher php compat comparison
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/App/CompareVersionTest.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/lib/App/CompareVersionTest.php b/tests/lib/App/CompareVersionTest.php index 6db31d0ee6f..d94b6f18a0f 100644 --- a/tests/lib/App/CompareVersionTest.php +++ b/tests/lib/App/CompareVersionTest.php @@ -1,5 +1,7 @@ <?php +declare(strict_types=1); + /** * @copyright 2018 Christoph Wurst <christoph@winzerhof-wurst.at> * @@ -49,11 +51,17 @@ class CompareVersionTest extends TestCase { ['13.0.0', '13', '>=', true], ['13.0.1', '13', '>=', true], ['13.0.1', '13', '<=', true], + ['13.0.1.9', '13', '<=', true], + ['13.0.1-beta.1', '13', '<=', true], + ['7.4.14', '7.4', '<=', true], + ['7.4.14-ubuntu', '7.4', '<=', true], + ['7.4.14-ubuntu', '7.4.15', '<=', true], // Incompatible major versions ['13.0.0.3', '13.0.0', '<', false], ['12.0.0', '13.0.0', '>=', false], ['12.0.0', '13.0', '>=', false], ['12.0.0', '13', '>=', false], + ['7.4.15-ubuntu', '7.4.15', '>=', true], // Incompatible minor and patch versions ['13.0.0', '13.0.1', '>=', false], ['13.0.0', '13.1', '>=', false], |