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.
Completed
Push — master ( bb96e0...68e81a )
by luca
02:33
created

TestCase   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 29
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 2
dl 0
loc 29
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Test;
4
5
6
use Prophecy\Argument;
7
8
/**
9
 * Class TestCase
10
 */
11
class TestCase extends \PHPUnit_Framework_TestCase
12
{
13
    protected function setUp()
14
    {
15
        parent::setUp();
16
    }
17
18
    /**
19
     * @param $responseBody
20
     *
21
     * @return \Prophecy\Prophecy\ObjectProphecy
22
     */
23
    protected function getFakeResponse($responseBody)
24
    {
25
26
        $fakeResponse = $this->prophesize(Response::class);
27
        $stream = $this->prophesize(Stream::class);
28
        $stream->getContents()->willReturn($responseBody);
29
        $stream->rewind()->willReturn(null)->shouldBeCalled();
30
        $fakeResponse->getBody()->willReturn($stream->reveal());
31
32
        return $fakeResponse;
33
34
    }
35
36
37
38
39
}
40