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.

GooglePucelaTestingDaysTest   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setUp() 0 4 1
A testMyTestCase() 0 8 1
1
<?php
2
3
namespace Tests\Functional\Acme;
4
5
class GooglePucelaTestingDaysTest extends \PHPUnit_Extensions_SeleniumTestCase {
6
7
    protected function setUp() {
8
        $this->setBrowser("*chrome");
0 ignored issues
show
Bug introduced by
The method setBrowser() does not exist on Tests\Functional\Acme\GooglePucelaTestingDaysTest. Did you maybe mean setBrowserLogLevel()?

This check marks calls to methods that do not seem to exist on an object.

This is most likely the result of a method being renamed without all references to it being renamed likewise.

Loading history...
9
        $this->setBrowserUrl("https://www.google.es/");
0 ignored issues
show
Documentation Bug introduced by
The method setBrowserUrl does not exist on object<Tests\Functional\...ePucelaTestingDaysTest>? Since you implemented __call, maybe consider adding a @method annotation.

If you implement __call and you know which methods are available, you can improve IDE auto-completion and static analysis by adding a @method annotation to the class.

This is often the case, when __call is implemented by a parent class and only the child class knows which methods exist:

class ParentClass {
    private $data = array();

    public function __call($method, array $args) {
        if (0 === strpos($method, 'get')) {
            return $this->data[strtolower(substr($method, 3))];
        }

        throw new \LogicException(sprintf('Unsupported method: %s', $method));
    }
}

/**
 * If this class knows which fields exist, you can specify the methods here:
 *
 * @method string getName()
 */
class SomeClass extends ParentClass { }
Loading history...
10
    }
11
12
    public function testMyTestCase() {
13
        $this->open("/");
0 ignored issues
show
Unused Code introduced by
The call to GooglePucelaTestingDaysTest::open() has too many arguments starting with '/'.

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...
14
        $this->type("id=gbqfq", "pucela testing days");
0 ignored issues
show
Unused Code introduced by
The call to GooglePucelaTestingDaysTest::type() has too many arguments starting with 'id=gbqfq'.

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...
15
        // $this->assertEquals("pucela testing days - Buscar con Google", $this->getTitle());
16
        $this->click("//ol[@id='rso']/li[2]/div/h3/a/em");
0 ignored issues
show
Unused Code introduced by
The call to GooglePucelaTestingDaysTest::click() has too many arguments starting with '//ol[@id=\'rso\']/li[2]/div/h3/a/em'.

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...
17
        $this->waitForPageToLoad("30000");
0 ignored issues
show
Unused Code introduced by
The call to GooglePucelaTestingDaysTest::waitForPageToLoad() has too many arguments starting with '30000'.

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...
18
        $this->assertEquals("Pucela Testing Days | juanignaciosl", $this->getTitle());
19
    }
20
21
}
22