Наследование: extends Text
Пример #1
0
 public function testRenderEmailInput()
 {
     $email = new Email('email');
     $expected = '<input type="email" name="email">';
     $result = $email->render();
     $this->assertEquals($expected, $result);
 }
Пример #2
0
 public function email($name)
 {
     $email = new Email($name);
     if (!is_null($value = $this->getValueFor($name))) {
         $email->value($value);
     }
     return $email;
 }