testItShouldProvideAlwaysTheSameDependencyInjectionExtension()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
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