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.

MailerTest::testConstructStoresTheDependencies()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 17
Code Lines 11

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 17
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 11
nc 1
nop 0
1
<?php
2
namespace RbCommentTest\Mvc\Controller\Plugin;
3
4
use RbComment\Mvc\Controller\Plugin\Mailer;
5
use PHPUnit_Framework_TestCase;
6
use Zend\Mail\Transport\Sendmail;
7
use Zend\View\Helper\ServerUrl;
8
9
class MailerTest extends PHPUnit_Framework_TestCase
10
{
11
    /**
12
     * @group controllerPlugin
13
     */
14
    public function testConstructStoresTheDependencies()
15
    {
16
        $serverUrlHelperMock = $this->createMock(ServerUrl::class);
17
        $mailerServiceMock   = $this->createMock(Sendmail::class);
18
        $configServiceMock   = [uniqid()];
19
20
        $mailer = new Mailer(
21
            $serverUrlHelperMock,
22
            $mailerServiceMock,
23
            $configServiceMock
24
        );
25
26
        // Assertions
27
        $this->assertAttributeEquals($serverUrlHelperMock, 'serverUrlHelper', $mailer);
28
        $this->assertAttributeEquals($mailerServiceMock, 'mailerService', $mailer);
29
        $this->assertAttributeEquals($configServiceMock, 'configService', $mailer);
30
    }
31
}
32