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.

WebTest   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 2
Dependencies 1

Importance

Changes 0
Metric Value
wmc 2
lcom 2
cbo 1
dl 0
loc 19
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setUp() 0 9 1
A testTitle() 0 6 1
1
<?php
2
namespace Tests\Functional\Acme;
3
/**
4
 * Test with Selenium
5
 */ 
6
class WebTest extends \PHPUnit_Extensions_Selenium2TestCase
7
{
8
    protected function setUp()
9
    {
10
        // Selenium RC
11
        $this->setHost('localhost');
12
        $this->setPort(4444);
13
        // Browser
14
        $this->setBrowser('*firefox');
15
        $this->setBrowserUrl('https://github.com/');
16
    }
17
18
    public function testTitle()
19
    {
20
        $this->url('isidromerayo/simple_php_skeleton');
0 ignored issues
show
Unused Code introduced by
The call to WebTest::url() has too many arguments starting with 'isidromerayo/simple_php_skeleton'.

This check compares calls to functions or methods with their respective definitions. If the call has more arguments than are defined, it raises an issue.

If a function is defined several times with a different number of parameters, the check may pick up the wrong definition and report false positives. One codebase where this has been known to happen is Wordpress.

In this case you can add the @ignore PhpDoc annotation to the duplicate definition and it will be ignored.

Loading history...
21
        $title = $this->title();
22
        $this->assertEquals('isidromerayo/simple_php_skeleton · GitHub', $title);
23
    }
24
}