DkplusCsrfApiUnprotectionBundleTest   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 2
dl 0
loc 19
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A testItShouldBeABundle() 0 4 1
A testItShouldProvideTheDependencyInjectionExtension() 0 5 1
A testItShouldProvideAlwaysTheSameDependencyInjectionExtension() 0 5 1
1
<?php
2
namespace DkplusTest\CsrfApiUnprotectionBundle;
3
4
use Dkplus\CsrfApiUnprotectionBundle\DkplusCsrfApiUnprotectionBundle;
5
use Dkplus\CsrfApiUnprotectionBundle\DependencyInjection\Extension;
6
use PHPUnit_Framework_TestCase as TestCase;
7
use Symfony\Component\HttpKernel\Bundle\Bundle;
8
9
/**
10
 * @covers Dkplus\CsrfApiUnprotectionBundle\DkplusCsrfApiUnprotectionBundle
11
 */
12
class DkplusCsrfApiUnprotectionBundleTest extends TestCase
13
{
14
    public function testItShouldBeABundle()
15
    {
16
        $this->assertInstanceOf(Bundle::class, new DkplusCsrfApiUnprotectionBundle());
17
    }
18
19
    public function testItShouldProvideTheDependencyInjectionExtension()
20
    {
21
        $bundle = new DkplusCsrfApiUnprotectionBundle();
22
        $this->assertInstanceOf(Extension::class, $bundle->getContainerExtension());
23
    }
24
25
    public function testItShouldProvideAlwaysTheSameDependencyInjectionExtension()
26
    {
27
        $bundle = new DkplusCsrfApiUnprotectionBundle();
28
        $this->assertSame($bundle->getContainerExtension(), $bundle->getContainerExtension());
29
    }
30
}
31