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.

AgilecylWebTest   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 0
Metric Value
wmc 3
lcom 1
cbo 1
dl 0
loc 23
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setUp() 0 6 1
A testGoAboutPageAndVerifyContent() 0 13 2
1
<?php
2
namespace Tests\Functional\Acme;
3
4
class AgilecylWebTest extends \PHPUnit_Extensions_SeleniumTestCase
5
{
6
  protected function setUp()
7
  {
8
    $this->setBrowser("*googlechrome");
0 ignored issues
show
Bug introduced by
The method setBrowser() does not exist on Tests\Functional\Acme\AgilecylWebTest. 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->setBrowser("*googlechrome");
10
    $this->setBrowserUrl("http://agilecyl.org/");
0 ignored issues
show
Documentation Bug introduced by
The method setBrowserUrl does not exist on object<Tests\Functional\Acme\AgilecylWebTest>? 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...
11
  }
12
13
  public function testGoAboutPageAndVerifyContent()
14
  {
15
    $this->open("/");
0 ignored issues
show
Unused Code introduced by
The call to AgilecylWebTest::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...
16
    $this->click("link=Acerca de…");
0 ignored issues
show
Unused Code introduced by
The call to AgilecylWebTest::click() has too many arguments starting with 'link=Acerca de…'.

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 AgilecylWebTest::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("Acerca de… | Agilecyl", $this->getTitle());
19
    try {
20
        $this->assertEquals("Acerca de… | Agilecyl", $this->getTitle());
21
    } catch (PHPUnit_Framework_AssertionFailedError $e) {
0 ignored issues
show
Bug introduced by
The class Tests\Functional\Acme\PH...rk_AssertionFailedError does not exist. Did you forget a USE statement, or did you not list all dependencies?

Scrutinizer analyzes your composer.json/composer.lock file if available to determine the classes, and functions that are defined by your dependencies.

It seems like the listed class was neither found in your dependencies, nor was it found in the analyzed files in your repository. If you are using some other form of dependency management, you might want to disable this analysis.

Loading history...
22
        array_push($this->verificationErrors, $e->toString());
23
    }
24
    $this->assertEquals("Si buscas resultados distintos, no hagas siempre lo mismo",$this->getText("css=strong > em"));
0 ignored issues
show
Unused Code introduced by
The call to AgilecylWebTest::getText() has too many arguments starting with 'css=strong > 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...
25
  }
26
}