Passed
Push — master ( 526326...f9ca3c )
by Gabriel
04:02 queued 11s
created

TimeTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A testGetDataFromRequest() 0 9 1
1
<?php
2
3
namespace Nip\Form\Tests\Elements;
4
5
use Nip\Form\Tests\AbstractTest;
6
7
/**
8
 * Class DateinputTest
9
 * @package Nip\Form\Tests\Elements
10
 */
11
class TimeTest extends AbstractTest
12
{
13
    public function testGetDataFromRequest()
14
    {
15
        $element = new \Nip_Form_Element_Time(new \Nip\Form\Form());
16
        $element->setName('mydate');
17
        $html = $element->render();
18
19
        self::assertSame(
20
            '<input  type="time" name="mydate" title="" />',
21
            $html
22
        );
23
    }
24
}
25