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.
Passed
Push — master ( a5b504...99f733 )
by Dejan
02:54
created

UndefinedOperatingSystemTest::setUp()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 0
1
<?php
2
namespace Fam\Util\UserAgentParser;
3
4
use PHPUnit\Framework\TestCase;
5
6
class UndefinedOperatingSystemTest extends TestCase
7
{
8
    /**
9
     * @var Windows
10
     */
11
    private $subject;
12
13
    protected function setUp()
14
    {
15
        parent::setUp();
16
17
        $this->subject = new \Fam\Util\UserAgentParser\UndefinedOperatingSystem();
0 ignored issues
show
Documentation Bug introduced by
It seems like new \Fam\Util\UserAgentP...efinedOperatingSystem() of type object<Fam\Util\UserAgen...definedOperatingSystem> is incompatible with the declared type object<Fam\Util\UserAgentParser\Windows> of property $subject.

Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.

Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..

Loading history...
18
    }
19
20
    /**
21
     * @test
22
     */
23
    public function match_AlwaysRreturnsFalse()
0 ignored issues
show
Coding Style introduced by
Method name "UndefinedOperatingSystemTest::match_AlwaysRreturnsFalse" is not in camel caps format
Loading history...
24
    {
25
        $this->assertFalse($this->subject->match("Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)"));
26
    }
27
28
    /**
29
     * @test
30
     */
31
    public function getName_returnsUndefined()
0 ignored issues
show
Coding Style introduced by
Method name "UndefinedOperatingSystemTest::getName_returnsUndefined" is not in camel caps format
Loading history...
32
    {
33
        $this->assertEquals("undefined", $this->subject->getName());
34
    }
35
}
36