mirror of
https://github.com/friendica/friendica
synced 2025-04-26 23:50:11 +00:00
Adapt tests
This commit is contained in:
parent
8385ee7a61
commit
3eb2abdb2a
8 changed files with 90 additions and 43 deletions
11
src/DI.php
11
src/DI.php
|
@ -39,6 +39,17 @@ abstract class DI
|
|||
self::$dice = $dice;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a clone of the current dice instance
|
||||
* This usefull for overloading the current instance with mocked methods during tests
|
||||
*
|
||||
* @return Dice
|
||||
*/
|
||||
public static function getDice()
|
||||
{
|
||||
return clone self::$dice;
|
||||
}
|
||||
|
||||
//
|
||||
// common instances
|
||||
//
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue