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 ( 15aa44...f0acc7 )
by Christian
07:56
created

AuthFailedEventTest   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 3
dl 0
loc 26
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 9 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\LastFmBundle\Tests\Event;
11
12
use Core23\LastFmBundle\Event\AuthFailedEvent;
13
use PHPUnit\Framework\TestCase;
14
use Symfony\Component\EventDispatcher\Event;
15
use Symfony\Component\HttpFoundation\Response;
16
17
class AuthFailedEventTest extends TestCase
18
{
19
    public function testCreation(): void
20
    {
21
        $event = new AuthFailedEvent();
22
23
        $this->assertInstanceOf(Event::class, $event);
24
    }
25
26
    public function testGetResponse(): void
27
    {
28
        $event = new AuthFailedEvent();
29
30
        $this->assertNull($event->getResponse());
31
    }
32
33
    public function testSetResponse(): void
34
    {
35
        $reponse = $this->prophesize(Response::class);
36
37
        $event = new AuthFailedEvent();
38
        $event->setResponse($reponse->reveal());
39
40
        $this->assertSame($reponse->reveal(), $event->getResponse());
41
    }
42
}
43