Adapt tests
This commit is contained in:
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
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user