예제 #1
0
 /** Создание тега для вложенных опций */
 protected function renderOptionsTmpl(Tag $tag)
 {
     return sprintf($this->getOptionsTmpl(), $tag->toHTML(), $tag instanceof Checkbox ? $tag->getDisplayValue() : $tag->getValue());
 }
예제 #2
0
파일: TagTest.php 프로젝트: sqrt-pro/tag
 /**
  * @dataProvider dataTag
  */
 function testTag($exp, $tag, $value, $attr = null, $short = null)
 {
     $t = new Tag($tag, $value, $attr, $short);
     $this->assertEquals($exp, $t->toHTML());
 }