MailerActionSpec   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 2
Bugs 1 Features 0
Metric Value
wmc 3
c 2
b 1
f 0
lcom 0
cbo 1
dl 0
loc 17
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A let() 0 4 1
A it_is_initializable() 0 4 1
A it_implements_action() 0 4 1
1
<?php
2
3
/*
4
 * This file is part of the WPSymfonyForm plugin.
5
 *
6
 * Copyright (c) 2015-2016 LIN3S <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace spec\LIN3S\WPSymfonyForm\Action;
13
14
use LIN3S\WPSymfonyForm\Action\Action;
15
use LIN3S\WPSymfonyForm\Action\MailerAction;
16
use PhpSpec\ObjectBehavior;
17
use Symfony\Component\Form\FormInterface;
18
19
/**
20
 * Spec file of MailerAction.
21
 *
22
 * @author Beñat Espiña <[email protected]>
23
 */
24
class MailerActionSpec extends ObjectBehavior
25
{
26
    function let()
27
    {
28
        $this->beConstructedWith('[email protected]', '<html>The template</html>', 'The email subject');
29
    }
30
31
    function it_is_initializable()
32
    {
33
        $this->shouldHaveType(MailerAction::class);
34
    }
35
36
    function it_implements_action()
37
    {
38
        $this->shouldImplement(Action::class);
39
    }
40
}
41