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, 'Столбцы'); }
public function render() { return HTML::Textarea($this->getName(), $this->getTaintedValue(), $this->getAttributes(), $this->getRows(), $this->getCols()); }