ConditionTest   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 testGetEmptyArgs() 0 5 1
A testGetExec() 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 ConditionTest extends TestCase
17
{
18
    public function testGetExec(): void
19
    {
20
        $config = new Condition('\\Foo\\Bar');
21
22
        $this->assertEquals('\\Foo\\Bar', $config->getExec());
23
    }
24
25
    public function testGetEmptyArgs(): void
26
    {
27
        $config = new Condition('\\Foo\\Bar');
28
29
        $this->assertEquals([], $config->getArgs());
30
    }
31
}
32