Failed Conditions
Push — issue#767 ( d652de...c7fd2d )
by Guilherme
05:20
created

SupportMessageTest::testSupportMessage()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 10
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 7
nc 1
nop 0
dl 0
loc 10
rs 9.4285
c 0
b 0
f 0
1
<?php
2
/**
3
 * This file is part of the login-cidadao project or it's bundles.
4
 *
5
 * (c) Guilherme Donato <guilhermednt on github>
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 */
10
11
namespace LoginCidadao\CoreBundle\Tests\Model;
12
13
use LoginCidadao\CoreBundle\Model\SupportMessage;
14
15
class SupportMessageTest extends \PHPUnit_Framework_TestCase
16
{
17
    public function testSupportMessage()
18
    {
19
        $message = (new SupportMessage())
20
            ->setName($name = 'Name Here')
21
            ->setEmail($email = '[email protected]')
22
            ->setMessage($text = 'Message');
23
24
        $this->assertSame($name, $message->getName());
25
        $this->assertSame($email, $message->getEmail());
26
        $this->assertSame($text, $message->getMessage());
27
    }
28
}
29