예제 #1
0
파일: HtmlTest.php 프로젝트: sevikerr/form
 public function testAttributes()
 {
     $tag = new Html();
     $tag->setTag('input');
     $tag->setAttributes(['value' => 123]);
     $tag->addClass('test');
     $tag->addClass('other');
     $this->assertEquals(['value' => 123, 'class' => 'test other'], $tag->getAttributes());
 }