public function testSetFrameTags() { $block = new Mage_Core_Block_Text(); $block->setText('text'); $block->setFrameTags('p'); $this->assertEquals('<p>text</p>', $block->toHtml()); $block->setFrameTags('p class="note"', '/p'); $this->assertEquals('<p class="note">text</p>', $block->toHtml()); $block->setFrameTags('non-wellformed tag', 'closing tag'); $this->assertEquals('<non-wellformed tag>text<closing tag>', $block->toHtml()); }