Passed
Pull Request — master (#16)
by Dmitry
14:13
created

WebConfigTest::getDefaultConfigName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Yiisoft\Composer\Config\Tests\Integration\Tests\Config;
6
7
final class WebConfigTest extends ConfigTest
8
{
9
    public function configProvider(): array
10
    {
11
        return [
12
            [
13
                \Environment\Serializer\SerializerInterface::class,
14
                \Environment\Serializer\PhpSerializer::class,
15
            ],
16
            [
17
                'params',
18
                fn(array $params) => $this->assertSame('default', $params['env_parameter']),
19
            ],
20
        ];
21
    }
22
23
    protected function getDefaultConfigName(): string
24
    {
25
        return 'web';
26
    }
27
}
28