Passed
Push — master ( 21ea66...db5c4e )
by Kirill
02:53
created

ConfigTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 4
c 1
b 0
f 0
dl 0
loc 9
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A testKey() 0 7 1
1
<?php
2
3
/**
4
 * Spiral Framework, SpiralScout LLC.
5
 *
6
 * @author    Anton Titov (Wolfy-J)
7
 */
8
9
declare(strict_types=1);
10
11
namespace Spiral\Tests\Encrypter;
12
13
use PHPUnit\Framework\TestCase;
14
use Spiral\Encrypter\Config\EncrypterConfig;
15
16
class ConfigTest extends TestCase
17
{
18
    public function testKey(): void
19
    {
20
        $config = new EncrypterConfig([
21
            'key' => 'abc'
22
        ]);
23
24
        $this->assertSame('abc', $config->getKey());
25
    }
26
}
27