OptionsTest::testGetAll()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 5
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
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