<?php
/**
- * @copyright Copyright (C) 2010-2022, the Friendica project
+ * @copyright Copyright (C) 2010-2023, the Friendica project
*
* @license GNU AGPL version 3 or any later version
*
->with(L10n::class)
->andReturn($this->l10nMock);
- DI::init($this->dice);
+ DI::init($this->dice, true);
}
public static function tearDownAfterClass(): void
$this->mockL10nT('Error: JSON PHP module required but not installed.', 1);
$this->mockL10nT('File Information PHP module', 1);
$this->mockL10nT('Error: File Information PHP module required but not installed.', 1);
+ $this->mockL10nT('GNU Multiple Precision PHP module', 1);
+ $this->mockL10nT('Error: GNU Multiple Precision PHP module required but not installed.', 1);
$this->mockL10nT('Program execution functions', 1);
$this->mockL10nT('Error: Program execution functions (proc_open) required but not enabled.', 1);
}
$this->setFunctions(['gmp_strval' => false]);
$install = new Installer();
self::assertFalse($install->checkFunctions());
- self::assertCheckExist(11,
+ self::assertCheckExist(12,
'GNU Multiple Precision PHP module',
'Error: GNU Multiple Precision PHP module required but not installed.',
false,
'posix_kill' => true,
'json_encode' => true,
'finfo_open' => true,
+ 'gmp_strval' => true,
]);
$install = new Installer();
self::assertTrue($install->checkFunctions());
->with(ICanSendHttpRequests::class)
->andReturn($networkMock);
- DI::init($this->dice);
+ DI::init($this->dice, true);
// Mocking that we can use CURL
$this->setFunctions(['curl_init' => true]);
->with(ICanSendHttpRequests::class)
->andReturn($networkMock);
- DI::init($this->dice);
+ DI::init($this->dice, true);
// Mocking that we can use CURL
$this->setFunctions(['curl_init' => true]);