mirror of
https://git.friendi.ca/friendica/friendica.git
synced 2025-06-17 00:45:14 +02:00
Creating interfaces for Config/PConfig & fix tests
This commit is contained in:
parent
4835f1185f
commit
c1dbb25656
54 changed files with 349 additions and 285 deletions
|
@ -3,9 +3,16 @@
|
|||
* This file is loaded by PHPUnit before any test.
|
||||
*/
|
||||
|
||||
use Dice\Dice;
|
||||
use Friendica\DI;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
// Backward compatibility
|
||||
if (!class_exists(TestCase::class)) {
|
||||
class_alias(PHPUnit_Framework_TestCase::class, TestCase::class);
|
||||
}
|
||||
|
||||
$dice = new Dice();
|
||||
$dice = $dice->addRules(include __DIR__ . '/../static/dependencies.config.php');
|
||||
|
||||
DI::init($dice);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue