Completed
Push — master ( 5f7cbd...b12d8e )
by Alejandro
03:03
created

ErrorHandlerManagerFactoryTest::serviceIsCreated()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 11
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 11
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 6
nc 1
nop 0
1
<?php
2
namespace AcelayaTest\ExpressiveErrorHandler\ErrorHandler\Factory;
3
4
use Acelaya\ExpressiveErrorHandler\ErrorHandler\ErrorHandlerManager;
5
use Acelaya\ExpressiveErrorHandler\ErrorHandler\Factory\ErrorHandlerManagerFactory;
6
use PHPUnit_Framework_TestCase as TestCase;
7
use Zend\ServiceManager\ServiceManager;
8
9
class ErrorHandlerManagerFactoryTest extends TestCase
10
{
11
    /**
12
     * @var ErrorHandlerManagerFactory
13
     */
14
    protected $factory;
15
16
    public function setUp()
17
    {
18
        $this->factory = new ErrorHandlerManagerFactory();
19
    }
20
21
    /**
22
     * @test
23
     */
24
    public function serviceIsCreated()
25
    {
26
        $instance = $this->factory->__invoke(new ServiceManager(['services' => [
27
            'config' => [
28
                'error_handler' => [
29
                    'plugins' => [],
30
                ],
31
            ],
32
        ]]));
33
        $this->assertInstanceOf(ErrorHandlerManager::class, $instance);
34
    }
35
}
36