Completed
Push — master ( 7ac6a5...2a89ae )
by Wachter
06:40
created

HandlerTest   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 3

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 3
lcom 1
cbo 3
dl 0
loc 23
rs 10
c 1
b 0
f 1

3 Methods

Rating   Name   Duplication   Size   Complexity  
A setUp() 0 6 1
A testHas() 0 6 1
A testRun() 0 6 1
1
<?php
2
3
namespace Functional;
4
5
use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
6
7
class HandlerTest extends KernelTestCase
8
{
9
    protected function setUp()
10
    {
11
        parent::setUp();
12
13
        $this->bootKernel();
14
    }
15
16
    public function testHas()
17
    {
18
        $registry = self::$kernel->getContainer()->get('task.handler_registry');
19
20
        $this->assertTrue($registry->has('test'));
21
    }
22
23
    public function testRun()
24
    {
25
        $registry = self::$kernel->getContainer()->get('task.handler_registry');
26
27
        $this->assertEquals('daolkrow', $registry->run('test', 'workload'));
28
    }
29
}
30