SlimRouterFactoryTest::setUp()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
namespace AcelayaTest\Expressive\Factory;
3
4
use Acelaya\Expressive\Factory\SlimRouterFactory;
5
use Acelaya\Expressive\Router\SlimRouter;
6
use PHPUnit\Framework\TestCase;
7
use Psr\Container\ContainerInterface;
8
9
class SlimRouterFactoryTest extends TestCase
10
{
11
    /**
12
     * @var SlimRouterFactory
13
     */
14
    protected $factory;
15
16
    public function setUp()
17
    {
18
        $this->factory = new SlimRouterFactory();
19
    }
20
21
    public function testInvoke()
22
    {
23
        $container = $this->prophesize(ContainerInterface::class);
24
        $instance = $this->factory->__invoke($container->reveal());
25
        $this->assertInstanceOf(SlimRouter::class, $instance);
26
    }
27
}
28