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

TextTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A testGenerate() 0 7 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