Test added
This commit is contained in:
@@ -276,6 +276,17 @@ class InstallerTest extends MockedTest
|
|||||||
true,
|
true,
|
||||||
$install->getChecks());
|
$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->mockFunctionL10TCalls();
|
||||||
$this->setFunctions([
|
$this->setFunctions([
|
||||||
'curl_init' => true,
|
'curl_init' => true,
|
||||||
|
|||||||
Reference in New Issue
Block a user