]> git.mxchange.org Git - friendica.git/commitdiff
Test added
authorMichael <heluecht@pirati.ca>
Sun, 17 Jul 2022 09:02:28 +0000 (09:02 +0000)
committerMichael <heluecht@pirati.ca>
Sun, 17 Jul 2022 09:02:28 +0000 (09:02 +0000)
tests/src/Core/InstallerTest.php

index 9256581b16ce8e8031a5a356a5b7aa68740c4a60..c951823148dcc577aaa1c2413446e4186665cadc 100644 (file)
@@ -276,6 +276,17 @@ class InstallerTest extends MockedTest
                        true,
                        $install->getChecks());
 
+               $this->mockFunctionL10TCalls();
+               $this->setFunctions(['gmp_strval' => false]);
+               $install = new Installer();
+               self::assertFalse($install->checkFunctions());
+               self::assertCheckExist(11,
+                       'GNU Multiple Precision PHP module',
+                       'Error: GNU Multiple Precision PHP module required but not installed.',
+               false,
+                       true,
+                       $install->getChecks());
+
                $this->mockFunctionL10TCalls();
                $this->setFunctions([
                        'curl_init' => true,