emailField() public static method

Generates an email field input.
See also: self::textInputField
public static emailField ( string $name, string $value = '', array $htmlOptions = [] ) : string
$name string the input name.
$value string the input value.
$htmlOptions array additional HTML attributes.
return string the generated input field.
Exemplo n.º 1
0
 public function testEmailField()
 {
     $I = $this->codeGuy;
     $html = TbHtml::emailField('email', '*****@*****.**', array('class' => 'input'));
     $input = $I->createNode($html, 'input[type=email]');
     $I->seeNodeAttributes($input, array('class' => 'input', 'id' => 'email', 'name' => 'email', 'value' => '*****@*****.**'));
 }