GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

OnurbYumlExtensionTest::setUp()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 7
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
namespace OnurbTest\Bundle\YumlBundle\DependencyInjection;
3
4
use Onurb\Bundle\ExcelBundle\DependencyInjection\OnurbExcelExtension;
5
use Onurb\Bundle\ExcelBundle\Factory\CompatibilityFactory;
6
use PHPUnit\Framework\TestCase;
7
use Symfony\Component\DependencyInjection\ContainerBuilder;
8
use Onurb\Bundle\ExcelBundle\Factory\ExcelFactory;
9
10
class OnurbYumlExtensionTest extends TestCase
11
{
12
    private $extension;
13
    private $container;
14
15
    protected function setUp()
16
    {
17
        $this->extension = new OnurbExcelExtension();
18
        $this->container = new ContainerBuilder();
19
20
        $this->container->registerExtension($this->extension);
21
    }
22
23
    /**
24
     * @covers \Onurb\Bundle\ExcelBundle\DependencyInjection\OnurbExcelExtension
25
     */
26
    public function testIsInstanceOf()
27
    {
28
        $this->assertInstanceOf("Symfony\\Component\\HttpKernel\\DependencyInjection\\Extension", $this->extension);
29
    }
30
31
    /**
32
     * @covers \Onurb\Bundle\ExcelBundle\DependencyInjection\OnurbExcelExtension
33
     */
34
    public function testDefaultConfiguration()
35
    {
36
        $this->container->loadFromExtension($this->extension->getAlias());
37
        $this->container->compile();
38
39
        $this->assertTrue($this->container->has('phpspreadsheet'));
40
        $this->assertInstanceOf(ExcelFactory::class, $this->container->get('phpspreadsheet'));
41
42
        $this->assertTrue($this->container->has('phpexcel'));
43
        $this->assertInstanceOf(CompatibilityFactory::class, $this->container->get('phpexcel'));
44
    }
45
}
46