Exemplo n.º 1
0
Arquivo: html.php Projeto: cmsx/html
 function testTextarea()
 {
     $t = HTML::Textarea('hello', 'Hi');
     $this->assertEquals('<textarea name="hello">Hi</textarea>', $t, 'Пустое поле');
     $t = HTML::Textarea('hello', 'bla bla', 'myclass', 10, 20);
     $this->assertSelectCount('textarea[class=myclass]', true, $t, 'Атрибуты');
     $this->assertSelectCount('textarea[rows=10]', true, $t, 'Ряды');
     $this->assertSelectCount('textarea[cols=20]', true, $t, 'Столбцы');
 }
Exemplo n.º 2
0
 public function render()
 {
     return HTML::Textarea($this->getName(), $this->getTaintedValue(), $this->getAttributes(), $this->getRows(), $this->getCols());
 }