TextTest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 5
dl 0
loc 8
rs 10
c 1
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A testGenerate() 0 6 1
1
<?php
2
3
namespace Nip\Form\Tests\Decorator\Elements;
4
5
use Nip\Form\Decorator\Elements\Text;
6
use Nip\Form\Tests\AbstractTest;
7
8
/**
9
 * Class TextTest
10
 * @package Nip\Form\Tests\Decorator\Elements
11
 */
12
class TextTest extends AbstractTest
13
{
14
    public function testGenerate()
15
    {
16
        $decorator = new Text();
17
        $decorator->setText('john');
18
        $decorator->setSeparator(' ');
19
        self::assertSame('hello john', $decorator->render('hello'));
20
    }
21
}
22