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.

AbstractUnitTestCase::getPrivateMethod()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 8
rs 9.4285
cc 1
eloc 5
nc 1
nop 2
1
<?php
2
3
namespace Tests;
4
5
use PHPUnit\Framework\TestCase;
6
7
class AbstractUnitTestCase extends TestCase
8
{
9
    /**
10
     * getPrivateMethod
11
     *
12
     * @param    string $className
13
     * @param    string $methodName
14
     * @return   \ReflectionMethod
15
     */
16
    public function getPrivateMethod($className, $methodName)
17
    {
18
        $reflector = new \ReflectionClass($className);
19
        $method = $reflector->getMethod($methodName);
20
        $method->setAccessible(true);
21
        
22
        return $method;
23
    }
24
}
25