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.

CommentTest::testConstructStoresTheDependencies()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 19
Code Lines 14

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 19
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 14
nc 1
nop 0
1
<?php
2
namespace RbCommentTest\Mvc\Controller\Plugin;
3
4
use RbComment\Model\CommentTable;
5
use RbComment\View\Helper\Comment as RbCommentViewHelper;
6
use PHPUnit_Framework_TestCase;
7
8
class CommentTest extends PHPUnit_Framework_TestCase
9
{
10
    /**
11
     * @group viewhelper
12
     */
13
    public function testConstructStoresTheDependencies()
14
    {
15
        $viewHelperManagerMock = $this->getMockBuilder('ViewHelperManager')->getMock();
16
        $routerServiceMock     = $this->getMockBuilder('Router')->getMock();
17
        $configServiceMock     = [uniqid()];
18
        $commentTableMock      = $this->createMock(CommentTable::class);
19
20
        $commentViewHelper = new RbCommentViewHelper(
21
            $viewHelperManagerMock,
22
            $routerServiceMock,
23
            $configServiceMock,
24
            $commentTableMock
25
        );
26
27
        $this->assertAttributeEquals($viewHelperManagerMock, 'viewHelperManager', $commentViewHelper);
28
        $this->assertAttributeEquals($routerServiceMock, 'routerService', $commentViewHelper);
29
        $this->assertAttributeEquals($configServiceMock, 'configService', $commentViewHelper);
30
        $this->assertAttributeEquals($commentTableMock, 'commentTable', $commentViewHelper);
31
    }
32
}
33