Adapt tests

This commit is contained in:
Philipp
2021-08-23 15:47:41 +02:00
parent 8385ee7a61
commit 3eb2abdb2a
8 changed files with 90 additions and 43 deletions

View File

@@ -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
//