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 ( a51d8d...661062 )
by Edi
23:20
created

DefaultSiteAccessVoterTest::voteProvider()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 11
Code Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 11
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 8
nc 1
nop 0
1
<?php
2
3
namespace Netgen\Bundle\SiteAccessRoutesBundle\Tests\Matcher\Voter;
4
5
use Netgen\Bundle\SiteAccessRoutesBundle\Matcher\Voter\DefaultSiteAccessVoter;
6
use Netgen\Bundle\SiteAccessRoutesBundle\Matcher\Voter\VoterInterface;
7
use Netgen\Bundle\SiteAccessRoutesBundle\Tests\TestCase;
8
9
class DefaultSiteAccessVoterTest extends TestCase
10
{
11
    /**
12
     * @var \Netgen\Bundle\SiteAccessRoutesBundle\Matcher\Voter\DefaultSiteAccessVoter
13
     */
14
    protected $voter;
15
16
    public function setUp()
17
    {
18
        $this->voter = new DefaultSiteAccessVoter('eng');
19
    }
20
21
    /**
22
     * @param string $siteAccess
23
     * @param array $groupConfig
24
     * @param bool $vote
25
     *
26
     * @covers \Netgen\Bundle\SiteAccessRoutesBundle\Matcher\Voter\DefaultSiteAccessVoter::__construct
27
     * @covers \Netgen\Bundle\SiteAccessRoutesBundle\Matcher\Voter\DefaultSiteAccessVoter::vote
28
     *
29
     * @dataProvider voteProvider
30
     */
31
    public function testVote($siteAccess, array $groupConfig, $vote)
32
    {
33
        $this->assertEquals($vote, $this->voter->vote($siteAccess, $groupConfig));
34
    }
35
36
    public function voteProvider()
37
    {
38
        return array(
39
            array('cro', array('_default'), VoterInterface::ABSTAIN),
40
            array('eng', array('_default'), true),
41
            array('extra', array('_default'), VoterInterface::ABSTAIN),
42
            array('cro', array('cro'), VoterInterface::ABSTAIN),
43
            array('eng', array('cro'), VoterInterface::ABSTAIN),
44
            array('extra', array('cro'), VoterInterface::ABSTAIN),
45
        );
46
    }
47
}
48