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
Pull Request — master (#73)
by Tomasz
01:58
created

AbstractTestCase::expectThrowException()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 10
c 0
b 0
f 0
cc 2
nc 2
nop 1
1
<?php
2
namespace Thunder\Shortcode\Tests;
3
4
use PHPUnit\Framework\TestCase;
5
6
/**
7
 * @author Tomasz Kowalczyk <[email protected]>
8
 */
9
abstract class AbstractTestCase extends TestCase
10
{
11
    public function expectThrowException($exception)
12
    {
13
        PHP_VERSION_ID >= 70000
14
            ? parent::expectException($exception)
0 ignored issues
show
Comprehensibility Bug introduced by
It seems like you call parent on a different method (expectException() instead of expectThrowException()). Are you sure this is correct? If so, you might want to change this to $this->expectException().

This check looks for a call to a parent method whose name is different than the method from which it is called.

Consider the following code:

class Daddy
{
    protected function getFirstName()
    {
        return "Eidur";
    }

    protected function getSurName()
    {
        return "Gudjohnsen";
    }
}

class Son
{
    public function getFirstName()
    {
        return parent::getSurname();
    }
}

The getFirstName() method in the Son calls the wrong method in the parent class.

Loading history...
15
            : $this->setExpectedException($exception);
0 ignored issues
show
Bug introduced by
The method setExpectedException() does not exist on Thunder\Shortcode\Tests\AbstractTestCase. Did you maybe mean setExpectedExceptionFromAnnotation()?

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...
16
    }
17
}
18