BundleTest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 2
dl 0
loc 13
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A testBundle() 0 10 1
1
<?php
2
3
namespace Tristanbes\MyPoseoBundle\Tests;
4
5
use PHPUnit\Framework\TestCase;
6
7
class BundleTest extends TestCase
8
{
9
    public function testBundle(): void
10
    {
11
        $kernel = new MyPoseoBundleTestKernel();
12
        $kernel->boot();
13
14
        $container = $kernel->getContainer();
15
16
        static::assertInstanceOf(\Tristanbes\MyPoseoBundle\Api\SearchInterface::class, $container->get('Tristanbes\MyPoseoBundle\Api\SearchInterface'));
17
        static::assertInstanceOf(\Tristanbes\MyPoseoBundle\Connection\RestClient::class, $container->get('Tristanbes\MyPoseoBundle\Connection\RestClient'));
18
    }
19
}
20