Completed
Push — develop ( 2b89a1...8f9d97 )
by Freddie
04:51 queued 10s
created

InputTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A testItRenderText() 0 7 1
1
<?php
2
3
namespace FlexPHP\Inputs\Tests\Unit;
4
5
use FlexPHP\Inputs\Input;
6
use FlexPHP\Inputs\Tests\TestCase;
7
8
class InputTest extends TestCase
9
{
10
    public function testItRenderText(): void
11
    {
12
        $render = Input::text('foo');
13
14
        $this->assertEquals(<<<'T'
15
<input type="text" id="form_foo" name="form[foo]" required="required" class="form-control" />
16
T, $render);
17
    }
18
}
19