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
Push — master ( 37c564...56f4ad )
by Mario
01:32
created

NetgenOpenGraphRuntimeLoaderTest   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 29
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 3
c 1
b 0
f 0
lcom 1
cbo 2
dl 0
loc 29
rs 10
1
<?php
2
3
namespace Netgen\Bundle\OpenGraphBundle\Tests\Templating\Twig\Extension;
4
5
use Netgen\Bundle\OpenGraphBundle\Templating\Twig\Extension\NetgenOpenGraphRuntime;
6
use Netgen\Bundle\OpenGraphBundle\Templating\Twig\Extension\NetgenOpenGraphRuntimeLoader;
7
use PHPUnit\Framework\TestCase;
8
9
class NetgenOpenGraphRuntimeLoaderTest extends TestCase
10
{
11
    /**
12
     * @var NetgenOpenGraphRuntimeLoader
13
     */
14
    protected $loader;
15
16
    /**
17
     * @var \PHPUnit_Framework_MockObject_MockObject
18
     */
19
    protected $runtime;
20
21
    public function setUp()
22
    {
23
        $this->runtime = $this->createMock(NetgenOpenGraphRuntime::class);
24
        $this->loader = new NetgenOpenGraphRuntimeLoader($this->runtime);
25
    }
26
27
    public function testLoad()
28
    {
29
        $runtime = $this->loader->load(NetgenOpenGraphRuntime::class);
30
        $this->assertSame($this->runtime, $runtime);
31
    }
32
33
    public function testLoadWithStdClass()
34
    {
35
        $this->assertNull($this->loader->load(\stdClass::class));
36
    }
37
}
38