コード例 #1
0
ファイル: EditorTest.php プロジェクト: ming-hai/XoopsCore
 /**
  * @covers Xoops\Form\Editor::render
  */
 public function testRender()
 {
     $value = $this->object->render();
     $this->assertTrue(is_string($value));
     $this->assertTrue(false !== strpos($value, '<textarea'));
 }
コード例 #2
0
/**
 * Editor getter Function
 * @see skip_editor()
 * @ignore
 */
function get_editor($name, $label = FALSE, $args = array())
{
    $textarea = new Editor($name, $label, $args);
    return $textarea->render();
}