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 ( fc38fb...ac880e )
by Christian
05:32
created

AuthFailedEventTest   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A testCreation() 0 6 1
A testGetResponse() 0 6 1
A testSetResponse() 0 10 1
1
<?php
2
3
/*
4
 * (c) Christian Gripp <[email protected]>
5
 *
6
 * For the full copyright and license information, please view the LICENSE
7
 * file that was distributed with this source code.
8
 */
9
10
namespace Core23\FacebookBundle\Tests\Event;
11
12
use Core23\FacebookBundle\Event\AuthFailedEvent;
13
use PHPUnit\Framework\TestCase;
14
use Prophecy\Prophecy\ObjectProphecy;
15
use Symfony\Component\EventDispatcher\Event;
16
use Symfony\Component\HttpFoundation\Response;
17
18
class AuthFailedEventTest extends TestCase
19
{
20
    public function testCreation(): void
21
    {
22
        $event = new AuthFailedEvent();
23
24
        $this->assertInstanceOf(Event::class, $event);
25
    }
26
27
    public function testGetResponse(): void
28
    {
29
        $event = new AuthFailedEvent();
30
31
        $this->assertNull($event->getResponse());
32
    }
33
34
    public function testSetResponse(): void
35
    {
36
        /** @var ObjectProphecy&Response $reponse */
0 ignored issues
show
Documentation introduced by
The doc-type ObjectProphecy&Response could not be parsed: Unknown type name "ObjectProphecy&Response" at position 0. (view supported doc-types)

This check marks PHPDoc comments that could not be parsed by our parser. To see which comment annotations we can parse, please refer to our documentation on supported doc-types.

Loading history...
37
        $reponse = $this->prophesize(Response::class);
38
39
        $event = new AuthFailedEvent();
40
        $event->setResponse($reponse->reveal());
41
42
        $this->assertSame($reponse->reveal(), $event->getResponse());
43
    }
44
}
45