Skip to content

Commit

Permalink
Add /config to test coverage (#258)
Browse files Browse the repository at this point in the history
  • Loading branch information
vjik authored Feb 20, 2025
1 parent 552b9c4 commit 12f5183
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
<source>
<include>
<directory suffix=".php">./src</directory>
<directory suffix=".php">./config</directory>
</include>
</source>
</phpunit>
4 changes: 3 additions & 1 deletion tests/ConfigTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
use Yiisoft\Router\RouteCollector;
use Yiisoft\Router\RouteCollectorInterface;

use function dirname;

final class ConfigTest extends TestCase
{
public function testRouteCollector(): void
Expand Down Expand Up @@ -52,7 +54,7 @@ private function createContainer(): Container

private function getContainerDefinitions(): array
{
$params = [];
$params = require dirname(__DIR__) . '/config/params.php';
return require dirname(__DIR__) . '/config/di.php';
}
}

0 comments on commit 12f5183

Please sign in to comment.