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   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 2
dl 0
loc 23
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A testConstructStoresTheDependencies() 0 17 1
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