Completed
Push — master ( d5dc6c...9a2ca3 )
by Alejandro
11s
created

InstallApplicationFactoryTest::setUp()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
declare(strict_types=1);
3
4
namespace ShlinkioTest\Shlink\Installer\Factory;
5
6
use PHPUnit\Framework\TestCase;
7
use Shlinkio\Shlink\Installer\Factory\InstallApplicationFactory;
8
use Symfony\Component\Console\Application;
9
use Symfony\Component\Filesystem\Filesystem;
10
use Zend\ServiceManager\ServiceManager;
11
12
class InstallApplicationFactoryTest extends TestCase
13
{
14
    /**
15
     * @var InstallApplicationFactory
16
     */
17
    private $factory;
18
19
    public function setUp()
20
    {
21
        $this->factory = new InstallApplicationFactory();
22
    }
23
24
    /**
25
     * @test
26
     */
27
    public function serviceIsCreated()
28
    {
29
        $instance = $this->factory->__invoke(new ServiceManager(['services' => [
30
            Filesystem::class => $this->prophesize(Filesystem::class)->reveal(),
31
        ]]), '');
32
33
        $this->assertInstanceOf(Application::class, $instance);
34
    }
35
}
36