Skip to content
This repository was archived by the owner on Dec 4, 2023. It is now read-only.

Commit

Permalink
Update EnvironmentAdapter.services.phpt
Browse files Browse the repository at this point in the history
  • Loading branch information
Radovan Kepák committed Sep 14, 2021
1 parent ef1494f commit f384a6c
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion tests/DI/EnvironmentAdapter.services.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ declare(strict_types=1);

use Mallgroup\DI\Config\Adapters\EnvironmentAdapter;
use Nette\DI\Definitions\Statement;
use Nette\DI\InvalidConfigurationException;
use Tester\Assert;


Expand Down Expand Up @@ -43,4 +44,15 @@ Assert::equal(
]
],
$data,
);
);

Assert::exception(function() use ($adapter) {
$adapter->load(
Tester\FileMock::create(
'
service_user: test
',
'env'
)
);
}, InvalidConfigurationException::class);

0 comments on commit f384a6c

Please sign in to comment.