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.

testInvokeWillCreateAConsoleControllerInstance()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 18
Code Lines 10

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 18
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 10
nc 1
nop 0
1
<?php
2
namespace RbCommentTest\Factory\Controller;
3
4
use Interop\Container\ContainerInterface;
5
use PHPUnit_Framework_TestCase;
6
use RbComment\Controller\ConsoleController;
7
use RbComment\Factory\Controller\ConsoleControllerFactory;
8
use RbComment\Model\CommentTable;
9
10
final class ConsoleControllerFactoryTest extends PHPUnit_Framework_TestCase
11
{
12
    /**
13
     * @group factory
14
     */
15
    public function testInvokeWillCreateAConsoleControllerInstance()
16
    {
17
        $containerMock    = $this->createMock(ContainerInterface::class);
18
        $commentTableMock = $this->createMock(CommentTable::class);
19
20
        $consoleControllerFactory = new ConsoleControllerFactory();
21
22
        // Expectations
23
        $containerMock->expects($this->once())
24
                      ->method('get')
25
                      ->with(CommentTable::class)
26
                      ->willReturn($commentTableMock);
27
28
        $controller = $consoleControllerFactory($containerMock, CommentController::class);
29
30
        // Assertions
31
        $this->assertInstanceOf(ConsoleController::class, $controller);
32
    }
33
}
34