Esempio n. 1
0
File: html.php Progetto: cmsx/html
 function testPassword()
 {
     $i = HTML::Password('hello', 123);
     $this->assertSelectCount('input[type=password]', true, $i, 'Тип');
     $this->assertSelectCount('input[name=hello]', true, $i, 'Имя');
     $this->assertSelectCount('input[value=123]', true, $i, 'Значение');
     $i = HTML::Password('hello', 123, 'myclass');
     $this->assertSelectCount('input[class=myclass]', true, $i, 'Атрибуты');
 }
Esempio n. 2
0
 public function render()
 {
     return HTML::Password($this->getName(), $this->getTaintedValue(), $this->getAttributes());
 }