Creating interfaces for Config/PConfig & fix tests

This commit is contained in:
nupplaPhil
2019-12-19 20:11:07 +01:00
parent 4835f1185f
commit c1dbb25656
54 changed files with 349 additions and 285 deletions

View File

@@ -16,14 +16,13 @@ class CurlResultTest extends TestCase
{
parent::setUp();
/** @var Dice|MockInterface $dice */
$dice = \Mockery::mock(Dice::class)->makePartial();
$dice = $dice->addRules(include __DIR__ . '/../../../static/dependencies.config.php');
$logger = new NullLogger();
$dice->shouldReceive('create')
->with(LoggerInterface::class)
->with(LoggerInterface::class, [])
->andReturn($logger);
DI::init($dice);