ConditionTest::testGetEmptyArgs()   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 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