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 ( 041dd4...6e20d0 )
by Jan-Petter
01:50
created

VersionTest::generateDataForTest()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 14
Code Lines 7

Duplication

Lines 14
Ratio 100 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 14
loc 14
rs 9.4285
cc 1
eloc 7
nc 1
nop 0
1
<?php
2
namespace vipnytt\UserAgentParser\Tests;
3
4
use vipnytt\UserAgentParser;
5
6
/**
7
 * Class VersionTest
8
 *
9
 * @package vipnytt\UserAgentParser\Tests
10
 */
11
class VersionTest extends \PHPUnit_Framework_TestCase
12
{
13
    /**
14
     * @dataProvider generateDataForTest
15
     * @param string $userAgent
16
     * @param string $result
17
     */
18
    public function testVersion($userAgent, $result)
19
    {
20
        $parser = new UserAgentParser($userAgent);
21
        $this->assertInstanceOf('vipnytt\UserAgentParser', $parser);
22
        $this->assertTrue($parser->stripVersion() == $result);
23
    }
24
25
    /**
26
     * Generate test data
27
     * @return array
28
     */
29
    public
30
    function generateDataForTest()
31
    {
32
        return [
33
            [
34
                'googlebot/2.1',
35
                'googlebot',
36
            ],
37
            [
38
                'bingbot/2.0',
39
                'bingbot',
40
            ],
41
            [
42
                'mybot',
43
                'mybot',
44
            ]
45
        ];
46
    }
47
}
48