Completed
Push — master ( 065cdd...96faaf )
by Alejandro
09:28
created

AppOptionsFactoryTest::setUp()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 4
rs 10
1
<?php
2
namespace ShlinkioTest\Shlink\Core\Options;
3
4
use PHPUnit_Framework_TestCase as TestCase;
5
use Shlinkio\Shlink\Core\Options\AppOptions;
6
use Shlinkio\Shlink\Core\Options\AppOptionsFactory;
7
use Zend\ServiceManager\ServiceManager;
8
9
class AppOptionsFactoryTest extends TestCase
10
{
11
    /**
12
     * @var AppOptionsFactory
13
     */
14
    protected $factory;
15
16
    public function setUp()
17
    {
18
        $this->factory = new AppOptionsFactory();
19
    }
20
21
    /**
22
     * @test
23
     */
24
    public function serviceIsCreated()
25
    {
26
        $instance = $this->factory->__invoke(new ServiceManager([]), '');
27
        $this->assertInstanceOf(AppOptions::class, $instance);
28
    }
29
}
30