Completed
Pull Request — master (#15)
by Wachter
06:01
created

TaskHandlerFactoryTest::setUp()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 1 Features 0
Metric Value
c 1
b 1
f 0
dl 0
loc 7
rs 9.4285
cc 1
eloc 4
nc 1
nop 0
1
<?php
2
3
/*
4
 * This file is part of php-task library.
5
 *
6
 * (c) php-task
7
 *
8
 * This source file is subject to the MIT license that is bundled
9
 * with this source code in the file LICENSE.
10
 */
11
12
namespace Functional;
13
14
use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
15
use Task\TaskBundle\Handler\TaskHandlerFactory;
16
17
class TaskHandlerFactoryTest extends KernelTestCase
18
{
19
    /**
20
     * @var TaskHandlerFactory
21
     */
22
    private $taskHandlerFactory;
23
24
    protected function setUp()
25
    {
26
        parent::setUp();
27
28
        $this->bootKernel();
29
        $this->taskHandlerFactory = self::$kernel->getContainer()->get('task.handler.factory');
30
    }
31
32
    public function testRun()
33
    {
34
        $this->assertInstanceOf(\TestHandler::class, $this->taskHandlerFactory->create(\TestHandler::class));
35
    }
36
}
37