TextTest::testGenerate()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
dl 0
loc 6
rs 10
c 1
b 0
f 0
cc 1
nc 1
nop 0
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