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.

DoctrineYumlDataCollectorTest   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 47
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 4

Importance

Changes 0
Metric Value
wmc 4
lcom 1
cbo 4
dl 0
loc 47
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A testIsInstanceOf() 0 5 1
A testGetName() 0 5 1
A testCollect() 0 7 1
A testReset() 0 11 1
1
<?php
2
namespace OnurbTest\Bundle\YumlBundle\DataCollector;
3
4
use Onurb\Bundle\YumlBundle\DataCollector\DoctrineYumlDataCollector;
5
use PHPUnit\Framework\TestCase;
6
use Symfony\Component\HttpFoundation\Request;
7
use Symfony\Component\HttpFoundation\Response;
8
9
class DoctrineYumlDataCollectorTest extends TestCase
10
{
11
12
    /**
13
     * @covers \Onurb\Bundle\YumlBundle\DataCollector\DoctrineYumlDataCollector
14
     */
15
    public function testIsInstanceOf()
16
    {
17
        $dataCollector = new DoctrineYumlDataCollector();
18
        $this->assertInstanceOf("Symfony\\Component\\HttpKernel\\DataCollector\\DataCollector", $dataCollector);
19
    }
20
21
    /**
22
     * @covers \Onurb\Bundle\YumlBundle\DataCollector\DoctrineYumlDataCollector
23
     */
24
    public function testGetName()
25
    {
26
        $dataCollector = new DoctrineYumlDataCollector();
27
        $this->assertSame('doctrine_yuml', $dataCollector->getName());
28
    }
29
30
    /**
31
     * @covers \Onurb\Bundle\YumlBundle\DataCollector\DoctrineYumlDataCollector
32
     */
33
    public function testCollect()
34
    {
35
        $dataCollector = new DoctrineYumlDataCollector();
36
        $dataCollector->collect(new Request(), new Response());
37
38
        $this->assertSame('a:1:{s:13:"doctrine_yuml";a:0:{}}', $dataCollector->serialize());
39
    }
40
41
    /**
42
     * @covers \Onurb\Bundle\YumlBundle\DataCollector\DoctrineYumlDataCollector
43
     */
44
    public function testReset()
45
    {
46
        $dataCollector = new DoctrineYumlDataCollector();
47
        $dataCollector->collect(new Request(), new Response());
48
49
        $this->assertSame('a:1:{s:13:"doctrine_yuml";a:0:{}}', $dataCollector->serialize());
50
51
        $dataCollector->reset();
52
53
        $this->assertSame('a:0:{}', $dataCollector->serialize());
54
    }
55
}
56