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.

JsonEventSubscriberTest::createEventSubscriber()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 18
Code Lines 12

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 18
c 0
b 0
f 0
rs 9.4285
cc 1
eloc 12
nc 1
nop 3
1
<?php
2
3
namespace Hateoas\Tests\Serializer\EventSubscriber;
4
5
use Hateoas\Serializer\EventSubscriber\JsonEventSubscriber;
6
use Prophecy\Argument;
7
8
class JsonEventSubscriberTest extends AbstractEventSubscriberTest
9
{
10
    protected function createEventSubscriber($serializer, $linksFactory, $embedsFactory)
11
    {
12
        $inlineDeferrerProphecy = $this->prophesize('Hateoas\Serializer\Metadata\InlineDeferrer');
13
        $inlineDeferrerProphecy
14
            ->handleItems(Argument::cetera())
15
            ->will(function ($args) {
16
                return $args[1];
17
            })
18
        ;
19
20
        return new JsonEventSubscriber(
21
            $serializer,
22
            $linksFactory,
23
            $embedsFactory,
24
            $inlineDeferrerProphecy->reveal(),
25
            $inlineDeferrerProphecy->reveal()
26
        );
27
    }
28
29
    protected function prophesizeSerializer()
30
    {
31
        return $this->prophesize('Hateoas\Serializer\JsonSerializerInterface');
32
    }
33
34
    protected function mockSerializationVisitor()
35
    {
36
        return $this->prophesize('JMS\Serializer\JsonSerializationVisitor')->reveal();
37
    }
38
}
39