Adapt tests

This commit is contained in:
Philipp 2021-08-23 15:47:41 +02:00
parent 8385ee7a61
commit 3eb2abdb2a
No known key found for this signature in database
GPG key ID: 9A28B7D4FF5667BD
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
//