BuilderModelTest   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 3

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setUp() 0 4 1
A testIt() 0 11 1
1
<?php
2
3
/*
4
 * This file is part of the MilioooMessageBundle package.
5
 *
6
 * (c) Michiel boeckaert <[email protected]>
7
 * This source file is subject to the MIT license that is bundled
8
 * with this source code in the file LICENSE.
9
 */
10
11
namespace Miliooo\Messaging\Tests\Builder\Model;
12
13
use Miliooo\Messaging\Builder\Model\ThreadBuilderModel;
14
use Miliooo\Messaging\Form\FormModel\NewThreadSingleRecipient;
15
use Miliooo\Messaging\TestHelpers\ParticipantTestHelper;
16
17
/**
18
 * Description of ExtendedBuilderModel
19
 *
20
 * @author Michiel Boeckaert <[email protected]>
21
 */
22
class BuilderModelTest extends \PHPUnit_Framework_TestCase
23
{
24
    private $builderModel;
25
26
    public function setUp()
27
    {
28
29
    }
30
31
    public function testIt()
32
    {
33
        $model = new NewThreadSingleRecipient();
34
        $sender = new ParticipantTestHelper(1);
35
        $model->setSender($sender);
36
        $model->setBody('this is my message lalala');
37
        $model->setCreatedAt(new \DateTime('now'));
38
        $model->setRecipient(new ParticipantTestHelper(2));
39
        $model->setSubject('hoi hier is mijn bericht');
40
        $this->builderModel = new ThreadBuilderModel($model);
41
    }
42
}
43