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.

XmlEventSubscriberTest   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A createEventSubscriber() 0 4 1
A prophesizeSerializer() 0 4 1
A mockSerializationVisitor() 0 4 1
1
<?php
2
3
namespace Hateoas\Tests\Serializer\EventSubscriber;
4
5
use Hateoas\Serializer\EventSubscriber\XmlEventSubscriber;
6
7
class XmlEventSubscriberTest extends AbstractEventSubscriberTest
8
{
9
    protected function createEventSubscriber($serializer, $linksFactory, $embedsFactory)
10
    {
11
        return new XmlEventSubscriber($serializer, $linksFactory, $embedsFactory);
12
    }
13
14
    protected function prophesizeSerializer()
15
    {
16
        return $this->prophesize('Hateoas\Serializer\XmlSerializerInterface');
17
    }
18
19
    protected function mockSerializationVisitor()
20
    {
21
        return $this->prophesize('JMS\Serializer\XmlSerializationVisitor')->reveal();
22
    }
23
}
24