Completed
Push — master ( 5052b0...8431a9 )
by Gabriel
04:18
created

TextTest::testGenerate()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 7
c 0
b 0
f 0
rs 10
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