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.

TwigExtensionTest::getExtensions()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 9
rs 9.6666
c 0
b 0
f 0
cc 1
eloc 5
nc 1
nop 0
1
<?php
2
3
namespace Classmarkets\RavenBundle\Tests;
4
5
use Classmarkets\RavenBundle\Twig\SentryEventExtension;
6
7
class TwigExtensionTest extends \Twig_Test_IntegrationTestCase
8
{
9
    use \Mockery\Adapter\Phpunit\MockeryPHPUnitIntegration;
10
11
    public function getExtensions()
12
    {
13
        $recorder = \Mockery::mock('Classmarkets\RavenBundle\SentryEventRecorder');
14
        $recorder->shouldReceive('getEventIdForException')->andReturn('abc');
15
16
        return [
17
            new SentryEventExtension($recorder),
18
        ];
19
    }
20
21
    /**
22
     * @codeCoverageIgnore This method is called in eval'd code
23
     */
24
    public function getFixturesDir()
25
    {
26
        return __DIR__.'/TwigFixtures';
27
    }
28
}
29