OptionsTest   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 5
dl 0
loc 14
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A testGet() 0 5 1
A testGetAll() 0 5 1
1
<?php
2
3
/**
4
 * This file is part of CaptainHook
5
 *
6
 * (c) Sebastian Feldmann <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace CaptainHook\App\Config;
13
14
use PHPUnit\Framework\TestCase;
15
16
class OptionsTest extends TestCase
17
{
18
    public function testGet(): void
19
    {
20
        $options = new Options(['foo' => 'bar']);
21
22
        $this->assertEquals('bar', $options->get('foo'));
23
    }
24
25
    public function testGetAll(): void
26
    {
27
        $options = new Options(['foo']);
28
29
        $this->assertEquals(['foo'], $options->getAll());
30
    }
31
}
32