public function testEnd() { $expectedValue = '</div>'; $actualValue = $this->activeField->end(); $this->assertEquals($expectedValue, $actualValue); // other tag $expectedValue = "</article>"; $this->activeField->options['tag'] = 'article'; $actualValue = $this->activeField->end(); $this->assertTrue($actualValue === $expectedValue); }
/** * @inheritdoc */ public function end() { $result = parent::end(); return str_replace('</div', '</dl', $result); }
public function end() { return "</span>" . parent::end(); }