Passed
Push — master ( 7815e3...d45a7a )
by Pieter
04:53
created

ServiceDefinitionTest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 14
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setUp() 0 3 1
A kernel_should_boot() 0 3 1
1
<?php
2
3
namespace Avoran\RapidoBundle;
4
5
use Avoran\RapidoAdapter\DoctrineDbalStorage\DoctrineDbalStorageWriter;
6
use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
7
use Symfony\Component\DependencyInjection\ContainerInterface;
8
9
class ServiceDefinitionTest extends KernelTestCase
10
{
11
    /** @var ContainerInterface */
12
    private $container;
13
14
    protected function setUp()
15
    {
16
        $this->container = self::bootKernel()->getContainer();
17
    }
18
19
    /** @test */
20
    public function kernel_should_boot()
21
    {
22
        $this->assertInstanceOf(DoctrineDbalStorageWriter::class, $this->container->get('rapido.storage_writer'));
23
    }
24
}
25