Completed
Push — master ( 94e1e6...1341d4 )
by Alejandro
16s queued 11s
created

createsTheServiceWithTheProperSetOfHelpers()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 5
c 1
b 0
f 0
dl 0
loc 8
rs 10
cc 1
nc 1
nop 0
1
<?php
2
declare(strict_types=1);
3
4
namespace ShlinkioTest\Shlink\CLI\Factory;
5
6
use PHPUnit\Framework\TestCase;
7
use Shlinkio\Shlink\Installer\Factory\ProcessHelperFactory;
8
9
class ProcessHelperFactoryTest extends TestCase
10
{
11
    /** @var ProcessHelperFactory */
12
    private $factory;
13
14
    public function setUp(): void
15
    {
16
        $this->factory = new ProcessHelperFactory();
17
    }
18
19
    /** @test */
20
    public function createsTheServiceWithTheProperSetOfHelpers(): void
21
    {
22
        $processHelper = ($this->factory)();
23
        $helperSet = $processHelper->getHelperSet();
24
25
        $this->assertCount(2, $helperSet);
26
        $this->assertTrue($helperSet->has('formatter'));
27
        $this->assertTrue($helperSet->has('debug_formatter'));
28
    }
29
}
30