显示下拉菜单

Unit test of 本页面仅提供英文版本。

add_blank_line_in_list_item() : test success (no-line, other)
add_line() : test success (line)
add_list_item() : test success (item)
add_string() : test success (string)
add_table_row() : test success (no-cell, one-th-cell, one-td-cell, two-td-cells)
close_embedded_lists() : test success (two-lists, three-lists)
close_list() : test success (no-list, one-list, two-lists)
close_table() : test success (no-cell, cells)
explode_text() : test success (text)
get_cell_start_tag() : test success (th, string, number, left, right, cnter)
get_ordered_list_item() : test success (dash-number, number, dash_number-start, number-start, dash-lowercase, lowercase, dash-lowercase-start, lowercase-start, equal, minus, plus, star, string, table, title)
get_table_cells() : test success (cells, no-cell)
get_table_cells_alignment() : test success (alignments)
get_table_row_type() : test success (data, header, other)
get_title_type() : test success (title, no-title, eot)
get_underline() : test success (equal, minus, plus, star, list-minus, list-plus, list-star, list-dash, list-number, string, blank)
get_unordered_list_item() : test success (equal-list, minus-list, plus-list, star-list, dash-list, number-list, equal, minus, plus, star, string, table)
is_title_next_line() : test success (next, skip-blanks, no-title)
need_blank_line() : test success (no-line, ordered, unordered, row, cells, other)
open_list() : test success (list, embedded, custom)
open_table() : test success (table)
process_blank_line() : test success (close-table, close-list, eot, before-hr, after-hr, line-break)
process_line() : test success (blank, title, underline, undordered, ordered, row, cells, line, string)
process_ordered_list_item() : test success (number, letter)
process_replacements() : test success (mail, http)
process_table_cells() : test success (no-cell, no-row, add, open)
process_table_row() : test success (open, add)
process_text() : test success (strings, titles, unordered, ordered, embedded, cells, table-list, replacement)
process_title() : test success (title)
process_underline() : test success (title, hr-line)
process_unordered_list_item() : test success (open, custom, add, embedded, parent)
set_end_tag() : test success (tag)
set_end_tags() : test success (tags)
set_options() : test success (no-options, options)
set_start_tags() : test success (no-tags, tags)
add_blank_line_in_list_item() #no-line
$args = [
  
=> [
    
=> '',
  ],
  
=> 0,
]
$expected = $returned
$returned = NULL
 
property pbx_text_to_html::html value
$expected = $returned
$returned = [
]
add_blank_line_in_list_item() #other
$args = [
  
=> [
    
=> '',
    
=> 'abc',
  ],
  
=> 0,
]
$expected = $returned
$returned = NULL
 
property pbx_text_to_html::html value
$expected = $returned
$returned = [
  
=> '<br />',
]
add_line() #line
$args = [
  
=> 'abc',
]
$expected = $returned
$returned = NULL
 
property pbx_text_to_html::html value
$expected = $returned
$returned = [
  
=> 'abc',
  
=> '<br />',
]
add_list_item() #item
$args = [
  
=> '- ',
  
=> 'abc',
]
$expected = $returned
$returned = NULL
 
property pbx_text_to_html::html value
$expected = $returned
$returned = [
  
=> '</li>',
  
=> '<li>',
  
=> 'abc',
]
add_string() #string
$args = [
  
=> 'abc',
]
$expected = $returned
$returned = NULL
 
property pbx_text_to_html::html value
$expected = $returned
$returned = [
  
=> 'abc',
]
add_table_row() #no-cell
$args = [
  
=> '+-',
]
$expected = $returned
$returned = NULL
 
property pbx_text_to_html::html value
$expected = $returned
$returned = [
  
=> '<tr>',
  
=> '</tr>',
]
 
property pbx_text_to_html::table_cell_type value
$expected = $returned
$returned = 'td'
 
property pbx_text_to_html::table_cells value
$expected = $returned
$returned = [
]
add_table_row() #one-th-cell
$args = [
  
=> '+=',
]
$expected = $returned
$returned = NULL
 
property pbx_text_to_html::html value
$expected = $returned
$returned = [
  
=> '<tr>',
  
=> '<th>',
  
=> 'abc',
  
=> '</th>',
  
=> '</tr>',
]
 
property pbx_text_to_html::table_cell_type value
$expected = $returned
$returned = 'td'
 
property pbx_text_to_html::table_cells value
$expected = $returned
$returned = [
]
add_table_row() #one-td-cell
$args = [
  
=> '+-',
]
$expected = $returned
$returned = NULL
 
property pbx_text_to_html::html value
$expected = $returned
$returned = [
  
=> '<tr>',
  
=> '<td>',
  
=> 'abc',
  
=> '</td>',
  
=> '</tr>',
]
 
property pbx_text_to_html::table_cell_type value
$expected = $returned
$returned = 'td'
 
property pbx_text_to_html::table_cells value
$expected = $returned
$returned = [
]
add_table_row() #two-td-cells
$args = [
  
=> '+-',
]
$expected = $returned
$returned = NULL
 
property pbx_text_to_html::html value
$expected = $returned
$returned = [
  
=> '<tr>',
  
=> '<td>',
  
=> 'abc',
  
=> '</td>',
  
=> '<td>',
  
=> 'def',
  
=> '</td>',
  
=> '</tr>',
]
 
property pbx_text_to_html::table_cell_type value
$expected = $returned
$returned = 'td'
 
property pbx_text_to_html::table_cells value
$expected = $returned
$returned = [
]
close_embedded_lists() #two-lists
$args = [
  
=> '- ',
]
$expected = $returned
$returned = NULL
 
property pbx_text_to_html::html value
$expected = $returned
$returned = [
  
=> '</li>',
  
=> '</ul>',
]
 
property pbx_text_to_html::list_types value
$expected = $returned
$returned = [
  
=> '- ',
]
close_embedded_lists() #three-lists
$args = [
  
=> '- ',
]
$expected = $returned
$returned = NULL
 
property pbx_text_to_html::html value
$expected = $returned
$returned = [
  
=> '</li>',
  
=> '</ul>',
  
=> '</li>',
  
=> '</ul>',
]
 
property pbx_text_to_html::list_types value
$expected = $returned
$returned = [
  
=> '- ',
]
close_list() #no-list
$args = [
]
$expected = $returned
$returned = NULL
 
property pbx_text_to_html::html value
$expected = $returned
$returned = [
]
 
property pbx_text_to_html::list_types value
$expected = $returned
$returned = [
]
close_list() #one-list
$args = [
]
$expected = $returned
$returned = NULL
 
property pbx_text_to_html::html value
$expected = $returned
$returned = [
  
=> '</li>',
  
=> '</ul>',
]
 
property pbx_text_to_html::list_types value
$expected = $returned
$returned = [
]
close_list() #two-lists
$args = [
]
$expected = $returned
$returned = NULL
 
property pbx_text_to_html::html value
$expected = $returned
$returned = [
  
=> '</li>',
  
=> '</ul>',
  
=> '</li>',
  
=> '</ul>',
]
 
property pbx_text_to_html::list_types value
$expected = $returned
$returned = [
]
close_table() #no-cell
$args = [
]
$expected = $returned
$returned = NULL
 
property pbx_text_to_html::html value
$expected = $returned
$returned = [
  
=> '</table>',
]
 
property pbx_text_to_html::table_cell_type value
$expected = $returned
$returned = NULL
close_table() #cells
$args = [
]
$expected = $returned
$returned = NULL
 
property pbx_text_to_html::html value
$expected = $returned
$returned = [
  
=> '<tr>',
  
=> '<td>',
  
=> 'abc',
  
=> '</td>',
  
=> '<td>',
  
=> 'def',
  
=> '</td>',
  
=> '</tr>',
  
=> '</table>',
]
 
property pbx_text_to_html::table_cell_type value
$expected = $returned
$returned = NULL
explode_text() #text
$args = [
  
=> '  
 abc  
  def  
  
 ghi  
  '
,
]
$expected = $returned
$returned = [
  
=> '',
  
=> 'abc',
  
=> 'def',
  
=> '',
  
=> 'ghi',
  
=> '',
]
get_cell_start_tag() #th
$args = [
  
=> 'th',
  
=> 0,
  
=> 'abc',
]
$expected = $returned
$returned = '<th>'
get_cell_start_tag() #string
$args = [
  
=> 'td',
  
=> 0,
  
=> 'abc',
]
$expected = $returned
$returned = '<td style="text_align: inherit">'
get_cell_start_tag() #number
$args = [
  
=> 'td',
  
=> 0,
  
=> '123',
]
$expected = $returned
$returned = '<td style="text_align: right">'
get_cell_start_tag() #left
$args = [
  
=> 'td',
  
=> 0,
  
=> '123',
]
$expected = $returned
$returned = '<td style="text_align: left">'
get_cell_start_tag() #right
$args = [
  
=> 'td',
  
=> 0,
  
=> 'abc',
]
$expected = $returned
$returned = '<td style="text_align: right">'
get_cell_start_tag() #cnter
$args = [
  
=> 'td',
  
=> 0,
  
=> 'abc',
]
$expected = $returned
$returned = '<td style="text_align: center">'
get_ordered_list_item() #dash-number
$args = [
  
=> [
    
=> '#1 abc',
  ],
  
=> 0,
]
$expected = $returned
$returned = [
  
=> '#1',
  
=> 1,
  
=> '1',
  
=> 'abc',
]
get_ordered_list_item() #number
$args = [
  
=> [
    
=> '1. abc',
  ],
  
=> 0,
]
$expected = $returned
$returned = [
  
=> '#1',
  
=> 1,
  
=> '1',
  
=> 'abc',
]
get_ordered_list_item() #dash_number-start
$args = [
  
=> [
    
=> '#10 abc',
  ],
  
=> 0,
]
$expected = $returned
$returned = [
  
=> '#1',
  
=> 10,
  
=> '1',
  
=> 'abc',
]
get_ordered_list_item() #number-start
$args = [
  
=> [
    
=> '10. abc',
  ],
  
=> 0,
]
$expected = $returned
$returned = [
  
=> '#1',
  
=> 10,
  
=> '1',
  
=> 'abc',
]
get_ordered_list_item() #dash-lowercase
$args = [
  
=> [
    
=> '#A abc',
  ],
  
=> 0,
]
$expected = $returned
$returned = [
  
=> '#A',
  
=> 1,
  
=> 'A',
  
=> 'abc',
]
get_ordered_list_item() #lowercase
$args = [
  
=> [
    
=> 'A. abc',
  ],
  
=> 0,
]
$expected = $returned
$returned = [
  
=> '#A',
  
=> 1,
  
=> 'A',
  
=> 'abc',
]
get_ordered_list_item() #dash-lowercase-start
$args = [
  
=> [
    
=> '#J abc',
  ],
  
=> 0,
]
$expected = $returned
$returned = [
  
=> '#A',
  
=> 10,
  
=> 'A',
  
=> 'abc',
]
get_ordered_list_item() #lowercase-start
$args = [
  
=> [
    
=> 'J. abc',
  ],
  
=> 0,
]
$expected = $returned
$returned = [
  
=> '#A',
  
=> 10,
  
=> 'A',
  
=> 'abc',
]
get_ordered_list_item() #equal
$args = [
  
=> [
    
=> '==========',
  ],
  
=> 0,
]
$expected = $returned
$returned = NULL
get_ordered_list_item() #minus
$args = [
  
=> [
    
=> '----------',
  ],
  
=> 0,
]
$expected = $returned
$returned = NULL
get_ordered_list_item() #plus
$args = [
  
=> [
    
=> '++++++++++',
  ],
  
=> 0,
]
$expected = $returned
$returned = NULL
get_ordered_list_item() #star
$args = [
  
=> [
    
=> '**********',
  ],
  
=> 0,
]
$expected = $returned
$returned = NULL
get_ordered_list_item() #string
$args = [
  
=> [
    
=> 'abc',
  ],
  
=> 0,
]
$expected = $returned
$returned = NULL
get_ordered_list_item() #table
$args = [
  
=> [
    
=> '1. abc',
  ],
  
=> 0,
]
$expected = $returned
$returned = NULL
get_ordered_list_item() #title
$args = [
  
=> [
    
=> '1. abc',
    
=> '======',
  ],
  
=> 0,
]
$expected = $returned
$returned = NULL
get_table_cells() #cells
$args = [
  
=> [
    
=> '|abc|def|',
  ],
  
=> 0,
]
$expected = $returned
$returned = [
  
=> 'abc',
  
=> 'def',
]
get_table_cells() #no-cell
$args = [
  
=> [
    
=> '|abc',
  ],
  
=> 0,
]
$expected = $returned
$returned = NULL
get_table_cells_alignment() #alignments
$args = [
  
=> '+~--+-~-+--~+---+',
]
$expected = $returned
$returned = NULL
 
property pbx_text_to_html::table_cells_alignment value
$expected = $returned
$returned = [
  
=> 'left',
  
=> 'center',
  
=> 'right',
  
=> NULL,
]
get_table_row_type() #data
$args = [
  
=> [
    
=> '+---+---+',
  ],
  
=> 0,
]
$expected = $returned
$returned = '+-'
get_table_row_type() #header
$args = [
  
=> [
    
=> '+===+===+',
  ],
  
=> 0,
]
$expected = $returned
$returned = '+='
get_table_row_type() #other
$args = [
  
=> [
    
=> 'abc',
  ],
  
=> 0,
]
$expected = $returned
$returned = NULL
get_title_type() #title
$args = [
  
=> [
    
=> 'abc',
    
=> '===',
  ],
  
=> 0,
]
$expected = $returned
$returned = '=='
get_title_type() #no-title
$args = [
  
=> [
    
=> 'abc',
    
=> 'xyz',
  ],
  
=> 0,
]
$expected = $returned
$returned = NULL
get_title_type() #eot
$args = [
  
=> [
    
=> 'abc',
  ],
  
=> 0,
]
$expected = $returned
$returned = NULL
get_underline() #equal
$args = [
  
=> [
    
=> '==========',
  ],
  
=> 0,
]
$expected = $returned
$returned = '=='
get_underline() #minus
$args = [
  
=> [
    
=> '----------',
  ],
  
=> 0,
]
$expected = $returned
$returned = '--'
get_underline() #plus
$args = [
  
=> [
    
=> '++++++++++',
  ],
  
=> 0,
]
$expected = $returned
$returned = '++'
get_underline() #star
$args = [
  
=> [
    
=> '**********',
  ],
  
=> 0,
]
$expected = $returned
$returned = '**'
get_underline() #list-minus
$args = [
  
=> [
    
=> '- abc',
  ],
  
=> 0,
]
$expected = $returned
$returned = NULL
get_underline() #list-plus
$args = [
  
=> [
    
=> '+ abc',
  ],
  
=> 0,
]
$expected = $returned
$returned = NULL
get_underline() #list-star
$args = [
  
=> [
    
=> '* abc',
  ],
  
=> 0,
]
$expected = $returned
$returned = NULL
get_underline() #list-dash
$args = [
  
=> [
    
=> '#1 abc',
  ],
  
=> 0,
]
$expected = $returned
$returned = NULL
get_underline() #list-number
$args = [
  
=> [
    
=> '1. abc',
  ],
  
=> 0,
]
$expected = $returned
$returned = NULL
get_underline() #string
$args = [
  
=> [
    
=> 'abc',
  ],
  
=> 0,
]
$expected = $returned
$returned = NULL
get_underline() #blank
$args = [
  
=> [
    
=> '',
  ],
  
=> 0,
]
$expected = $returned
$returned = NULL
get_unordered_list_item() #equal-list
$args = [
  
=> '= abc',
]
$expected = $returned
$returned = [
  
=> '= ',
  
=> 'abc',
]
get_unordered_list_item() #minus-list
$args = [
  
=> '- abc',
]
$expected = $returned
$returned = [
  
=> '- ',
  
=> 'abc',
]
get_unordered_list_item() #plus-list
$args = [
  
=> '+ abc',
]
$expected = $returned
$returned = [
  
=> '+ ',
  
=> 'abc',
]
get_unordered_list_item() #star-list
$args = [
  
=> '* abc',
]
$expected = $returned
$returned = [
  
=> '* ',
  
=> 'abc',
]
get_unordered_list_item() #dash-list
$args = [
  
=> '#1 abc',
]
$expected = $returned
$returned = NULL
get_unordered_list_item() #number-list
$args = [
  
=> '1. abc',
]
$expected = $returned
$returned = NULL
get_unordered_list_item() #equal
$args = [
  
=> '==========',
]
$expected = $returned
$returned = NULL
get_unordered_list_item() #minus
$args = [
  
=> '----------',
]
$expected = $returned
$returned = NULL
get_unordered_list_item() #plus
$args = [
  
=> '++++++++++',
]
$expected = $returned
$returned = NULL
get_unordered_list_item() #star
$args = [
  
=> '**********',
]
$expected = $returned
$returned = NULL
get_unordered_list_item() #string
$args = [
  
=> 'abc',
]
$expected = $returned
$returned = NULL
get_unordered_list_item() #table
$args = [
  
=> '- abc',
]
$expected = $returned
$returned = NULL
is_title_next_line() #next
$args = [
  
=> [
    
=> 'abc',
    
=> 'def',
    
=> '---',
  ],
  
=> 0,
]
$expected = $returned
$returned = true
is_title_next_line() #skip-blanks
$args = [
  
=> [
    
=> 'abc',
    
=> '',
    
=> '',
    
=> '',
    
=> 'def',
    
=> '---',
  ],
  
=> 0,
]
$expected = $returned
$returned = true
is_title_next_line() #no-title
$args = [
  
=> [
    
=> 'abc',
    
=> 'def',
    
=> 'ghi',
  ],
  
=> 0,
]
$expected = $returned
$returned = false
need_blank_line() #no-line
$args = [
  
=> [
    
=> '',
  ],
  
=> 0,
]
$expected = $returned
$returned = false
need_blank_line() #ordered
$args = [
  
=> [
    
=> '',
    
=> '#1 abc',
  ],
  
=> 0,
]
$expected = $returned
$returned = false
need_blank_line() #unordered
$args = [
  
=> [
    
=> '',
    
=> '= abc',
  ],
  
=> 0,
]
$expected = $returned
$returned = false
need_blank_line() #row
$args = [
  
=> [
    
=> '',
    
=> '+---+---+',
  ],
  
=> 0,
]
$expected = $returned
$returned = false
need_blank_line() #cells
$args = [
  
=> [
    
=> '',
    
=> '|abc|def|',
  ],
  
=> 0,
]
$expected = $returned
$returned = false
need_blank_line() #other
$args = [
  
=> [
    
=> '',
    
=> 'abc',
  ],
  
=> 0,
]
$expected = $returned
$returned = true
open_list() #list
$args = [
  
=> '- ',
  
=> 'abc',
]
$expected = $returned
$returned = NULL
 
property pbx_text_to_html::html value
$expected = $returned
$returned = [
  
=> '<ul>',
  
=> '<li>',
  
=> 'abc',
]
 
property pbx_text_to_html::list_types value
$expected = $returned
$returned = [
  
=> '- ',
]
open_list() #embedded
$args = [
  
=> '+ ',
  
=> 'def',
]
$expected = $returned
$returned = NULL
 
property pbx_text_to_html::html value
$expected = $returned
$returned = [
  
=> '<ul>',
  
=> '<li>',
  
=> 'def',
]
 
property pbx_text_to_html::list_types value
$expected = $returned
$returned = [
  
=> '* ',
  
=> '+ ',
]
open_list() #custom
$args = [
  
=> '- ',
  
=> 'abc',
  
=> '<myul>',
]
$expected = $returned
$returned = NULL
 
property pbx_text_to_html::html value
$expected = $returned
$returned = [
  
=> '<myul>',
  
=> '<li>',
  
=> 'abc',
]
 
property pbx_text_to_html::list_types value
$expected = $returned
$returned = [
  
=> '- ',
]
open_table() #table
$args = [
]
$expected = $returned
$returned = NULL
 
property pbx_text_to_html::html value
$expected = $returned
$returned = [
  
=> '<table>',
]
 
property pbx_text_to_html::table_cell_type value
$expected = $returned
$returned = 'th'
process_blank_line() #close-table
$args = [
  
=> [
  ],
]
$expected = $returned
$returned = NULL
 
property pbx_text_to_html::html value
$expected = $returned
$returned = [
  
=> '</table>',
]
 
property pbx_text_to_html::table_cell_type value
$expected = $returned
$returned = NULL
process_blank_line() #close-list
$args = [
  
=> [
  ],
]
$expected = $returned
$returned = NULL
 
property pbx_text_to_html::html value
$expected = $returned
$returned = [
  
=> '</table>',
]
 
property pbx_text_to_html::table_cell_type value
$expected = $returned
$returned = NULL
process_blank_line() #eot
$args = [
  
=> [
  ],
]
$expected = $returned
$returned = NULL
 
property pbx_text_to_html::html value
$expected = $returned
$returned = [
]
process_blank_line() #before-hr
$args = [
  
=> [
    
=> '',
    
=> '----------',
  ],
  
=> 0,
]
$expected = $returned
$returned = NULL
 
property pbx_text_to_html::html value
$expected = $returned
$returned = [
]
process_blank_line() #after-hr
$args = [
  
=> [
    
=> '----------',
    
=> '',
  ],
  
=> 1,
]
$expected = $returned
$returned = NULL
 
property pbx_text_to_html::html value
$expected = $returned
$returned = [
]
process_blank_line() #line-break
$args = [
  
=> [
    
=> 'abc',
    
=> '',
  ],
  
=> 1,
]
$expected = $returned
$returned = NULL
 
property pbx_text_to_html::html value
$expected = $returned
$returned = [
  
=> '<br />',
]
process_line() #blank
$args = [
  
=> [
    
=> '',
  ],
  
=> 0,
]
$expected = $returned
$returned = NULL
 
property pbx_text_to_html::html value
$expected = $returned
$returned = [
  
=> '</table>',
]
 
property pbx_text_to_html::table_cell_type value
$expected = $returned
$returned = NULL
process_line() #title
$args = [
  
=> [
    
=> 'abc',
    
=> '===',
  ],
  
=> 0,
]
$expected = $returned
$returned = NULL
 
property pbx_text_to_html::html value
$expected = $returned
$returned = [
  
=> '<h1>',
  
=> 'abc',
  
=> '</h1>',
]
 
property pbx_text_to_html::ignore_blank_line value
$expected = $returned
$returned = true
process_line() #underline
$args = [
  
=> [
    
=> '----------',
  ],
  
=> 0,
]
$expected = $returned
$returned = NULL
 
property pbx_text_to_html::html value
$expected = $returned
$returned = [
  
=> '<hr />',
]
process_line() #undordered
$args = [
  
=> [
    
=> '- abc',
  ],
  
=> 0,
]
$expected = $returned
$returned = NULL
 
property pbx_text_to_html::html value
$expected = $returned
$returned = [
  
=> '<ul>',
  
=> '<li>',
  
=> 'abc',
]
 
property pbx_text_to_html::list_types value
$expected = $returned
$returned = [
  
=> '- ',
]
process_line() #ordered
$args = [
  
=> [
    
=> '1. abc',
  ],
  
=> 0,
]
$expected = $returned
$returned = NULL
 
property pbx_text_to_html::html value
$expected = $returned
$returned = [
  
=> '<ol start="1" type="1">',
  
=> '<li>',
  
=> 'abc',
]
 
property pbx_text_to_html::list_types value
$expected = $returned
$returned = [
  
=> '#1',
]
process_line() #row
$args = [
  
=> [
    
=> '+--+--+',
  ],
  
=> 0,
]
$expected = $returned
$returned = NULL
 
property pbx_text_to_html::html value
$expected = $returned
$returned = [
  
=> '<table>',
]
 
property pbx_text_to_html::table_cell_type value
$expected = $returned
$returned = 'th'
process_line() #cells
$args = [
  
=> [
    
=> '| abc | def |',
  ],
  
=> 0,
]
$expected = $returned
$returned = NULL
 
property pbx_text_to_html::table_cells value
$expected = $returned
$returned = [
  
=> [
    
=> 'abc',
  ],
  
=> [
    
=> 'def',
  ],
]
process_line() #line
$args = [
  
=> [
    
=> 'abc',
    
=> 'def',
  ],
  
=> 0,
]
$expected = $returned
$returned = NULL
 
property pbx_text_to_html::html value
$expected = $returned
$returned = [
  
=> 'abc',
  
=> '<br />',
]
process_line() #string
$args = [
  
=> [
    
=> 'abc',
  ],
  
=> 0,
]
$expected = $returned
$returned = NULL
 
property pbx_text_to_html::html value
$expected = $returned
$returned = [
  
=> 'abc',
]
process_ordered_list_item() #number
$args = [
  
=> [
    
=> '#1',
    
=> 1,
    
=> '1',
    
=> 'abc',
  ],
]
$expected = $returned
$returned = NULL
 
property pbx_text_to_html::html value
$expected = $returned
$returned = [
  
=> '<ol start="1" type="1">',
  
=> '<li>',
  
=> 'abc',
]
 
property pbx_text_to_html::list_types value
$expected = $returned
$returned = [
  
=> '#1',
]
process_ordered_list_item() #letter
$args = [
  
=> [
    
=> '#a',
    
=> 10,
    
=> 'a',
    
=> 'abc',
  ],
]
$expected = $returned
$returned = NULL
 
property pbx_text_to_html::html value
$expected = $returned
$returned = [
  
=> '<ol start="10" type="a">',
  
=> '<li>',
  
=> 'abc',
]
 
property pbx_text_to_html::list_types value
$expected = $returned
$returned = [
  
=> '#a',
]
process_replacements() #mail
$args = [
  
=> 'abc@mail.com',
]
$expected = $returned
$returned = '<a href="mailto:abc@mail.com">abc@mail.com</a>'
process_replacements() #http
$args = [
  
=> 'http://abc.com',
]
$expected = $returned
$returned = '<a href="http://abc.com">abc.com</a>'
process_table_cells() #no-cell
$args = [
  
=> [
  ],
]
$expected = $returned
$returned = NULL
 
property pbx_text_to_html::table_cells value
$expected = $returned
$returned = [
]
process_table_cells() #no-row
$args = [
  
=> [
    
=> 'abc',
    
=> 'def',
  ],
]
$expected = $returned
$returned = NULL
 
property pbx_text_to_html::table_cells value
$expected = $returned
$returned = [
  
=> [
    
=> 'abc',
  ],
  
=> [
    
=> 'def',
  ],
]
process_table_cells() #add
$args = [
  
=> [
    
=> '',
    
=> 'uvw',
    
=> 'xyz',
  ],
]
$expected = $returned
$returned = NULL
 
property pbx_text_to_html::table_cells value
$expected = $returned
$returned = [
  
=> [
    
=> 'abc',
    
=> '',
  ],
  
=> [
    
=> 'def',
    
=> 'uvw',
  ],
  
=> [
    
=> '',
    
=> 'xyz',
  ],
]
process_table_cells() #open
$args = [
  
=> [
  ],
]
$expected = $returned
$returned = NULL
 
property pbx_text_to_html::html value
$expected = $returned
$returned = [
  
=> '<table>',
]
 
property pbx_text_to_html::table_cell_type value
$expected = $returned
$returned = 'th'
 
property pbx_text_to_html::table_cells value
$expected = $returned
$returned = [
]
process_table_row() #open
$args = [
  
=> '+-',
  
=> '+~--+',
]
$expected = $returned
$returned = NULL
 
property pbx_text_to_html::html value
$expected = $returned
$returned = [
  
=> '<table>',
]
 
property pbx_text_to_html::table_cell_type value
$expected = $returned
$returned = 'th'
 
property pbx_text_to_html::table_cells_alignment value
$expected = $returned
$returned = [
  
=> 'left',
]
process_table_row() #add
$args = [
  
=> '+=',
]
$expected = $returned
$returned = NULL
 
property pbx_text_to_html::html value
$expected = $returned
$returned = [
  
=> '<tr>',
  
=> '<th>',
  
=> 'abc',
  
=> '</th>',
  
=> '</tr>',
]
 
property pbx_text_to_html::table_cell_type value
$expected = $returned
$returned = 'td'
 
property pbx_text_to_html::table_cells value
$expected = $returned
$returned = [
]
process_text() #strings
$args = [
  
=> 'aaaaa
bbbbb
'
,
]
$expected = $returned
$returned = 'aaaaa
<br />
bbbbb
<br />
<br />'
process_text() #titles
$args = [
  
=> 'aaaaa
=====

bbbbb
ccccc

ddddd
-----

eeeee
fffff'
,
]
$expected = $returned
$returned = '<h1>
aaaaa
</h1>
bbbbb
<br />
ccccc
<h2>
ddddd
</h2>
eeeee
<br />
fffff'
process_text() #unordered
$args = [
  
=> 'uvw:
- abc
- def
ghi'
,
]
$expected = $returned
$returned = 'uvw:
<ul>
<li>
abc
</li>
<li>
def
<br />
ghi
</li>
</ul>'
process_text() #ordered
$args = [
  
=> '1. abc
2. def'
,
]
$expected = $returned
$returned = '<ol start="1" type="1">
<li>
abc
</li>
<li>
def
</li>
</ol>'
process_text() #embedded
$args = [
  
=> '- abc
- def
* uvw
* xyz
- ghi'
,
]
$expected = $returned
$returned = '<ul>
<li>
abc
</li>
<li>
def
<ul>
<li>
uvw
</li>
<li>
xyz
</li>
</ul>
</li>
<li>
ghi
</li>
</ul>'
process_text() #cells
$args = [
  
=> '+-----+-----+-----+
| aaa | bbb |     |
+=====+=====+=====+
| ddd | eee |     |
| DDD |     | FFF |
+-----+-----+-----+'
,
]
$expected = $returned
$returned = '<table>
<tr>
<th>
aaa
</th>
<th>
bbb
</th>
<th>

</th>
</tr>
<tr>
<td>
ddd<br />DDD
</td>
<td>
eee<br />
</td>
<td>
<br />FFF
</td>
</tr>
</table>'
process_text() #table-list
$args = [
  
=> '+-----+-----+-----+
| 123 | - aaa     |
|     | - bbb     |
+-----+-----+-----+'
,
]
$expected = $returned
$returned = '<table>
<tr>
<td>
123<br />
</td>
<td>
- aaa<br />- bbb
</td>
</tr>
</table>'
process_text() #replacement
$args = [
  
=> 'abc@mail.com',
]
$expected = $returned
$returned = '<a href="mailto:abc@mail.com">abc@mail.com</a>'
process_title() #title
$args = [
  
=> 'abc',
  
=> '==',
]
$expected = $returned
$returned = NULL
 
property pbx_text_to_html::html value
$expected = $returned
$returned = [
  
=> '<h1>',
  
=> 'abc',
  
=> '</h1>',
]
 
property pbx_text_to_html::ignore_blank_line value
$expected = $returned
$returned = true
process_underline() #title
$args = [
  
=> '----------',
]
$expected = $returned
$returned = NULL
 
property pbx_text_to_html::html value
$expected = $returned
$returned = [
]
 
property pbx_text_to_html::ignore_blank_line value
$expected = $returned
$returned = true
process_underline() #hr-line
$args = [
  
=> '----------',
]
$expected = $returned
$returned = NULL
 
property pbx_text_to_html::html value
$expected = $returned
$returned = [
  
=> '<hr />',
]
process_unordered_list_item() #open
$args = [
  
=> [
    
=> '- ',
    
=> 'abc',
  ],
]
$expected = $returned
$returned = NULL
 
property pbx_text_to_html::html value
$expected = $returned
$returned = [
  
=> '<ul>',
  
=> '<li>',
  
=> 'abc',
]
 
property pbx_text_to_html::list_types value
$expected = $returned
$returned = [
  
=> '- ',
]
process_unordered_list_item() #custom
$args = [
  
=> [
    
=> '- ',
    
=> 'abc',
  ],
  
=> '<myul>',
]
$expected = $returned
$returned = NULL
 
property pbx_text_to_html::html value
$expected = $returned
$returned = [
  
=> '<myul>',
  
=> '<li>',
  
=> 'abc',
]
 
property pbx_text_to_html::list_types value
$expected = $returned
$returned = [
  
=> '- ',
]
process_unordered_list_item() #add
$args = [
  
=> [
    
=> '- ',
    
=> 'abc',
  ],
]
$expected = $returned
$returned = NULL
 
property pbx_text_to_html::html value
$expected = $returned
$returned = [
  
=> '</li>',
  
=> '<li>',
  
=> 'abc',
]
 
property pbx_text_to_html::list_types value
$expected = $returned
$returned = [
  
=> '- ',
]
process_unordered_list_item() #embedded
$args = [
  
=> [
    
=> '- ',
    
=> 'abc',
  ],
]
$expected = $returned
$returned = NULL
 
property pbx_text_to_html::html value
$expected = $returned
$returned = [
  
=> '<ul>',
  
=> '<li>',
  
=> 'abc',
]
 
property pbx_text_to_html::list_types value
$expected = $returned
$returned = [
  
=> '+ ',
  
=> '- ',
]
process_unordered_list_item() #parent
$args = [
  
=> [
    
=> '- ',
    
=> 'abc',
  ],
]
$expected = $returned
$returned = NULL
 
property pbx_text_to_html::html value
$expected = $returned
$returned = [
  
=> '</li>',
  
=> '</ul>',
  
=> '</li>',
  
=> '<li>',
  
=> 'abc',
]
 
property pbx_text_to_html::list_types value
$expected = $returned
$returned = [
  
=> '- ',
]
set_end_tag() #tag
$args = [
  
=> [
    
'li' => '<li>',
    
'ul' => '<ul>',
  ],
]
$expected = $returned
$returned = [
  
'li' => '</li>',
  
'ul' => '</ul>',
]
set_end_tags() #tags
$args = [
]
$expected = $returned
$returned = NULL
 
property pbx_text_to_html::end_tags value
$expected = $returned
$returned = [
  
'==' => '</myh1>',
  
'--' => '</h2>',
]
set_options() #no-options
$args = [
]
$expected = $returned
$returned = NULL
 
property pbx_text_to_html::options value
$expected = $returned
$returned = [
  
'abc' => '123',
  
'def' => '456',
]
set_options() #options
$args = [
  
=> [
    
'abc' => '789',
  ],
]
$expected = $returned
$returned = NULL
 
property pbx_text_to_html::options value
$expected = $returned
$returned = [
  
'abc' => '789',
  
'def' => '456',
]
set_start_tags() #no-tags
$args = [
]
$expected = $returned
$returned = NULL
 
property pbx_text_to_html::default_tags value
$expected = $returned
$returned = [
  
'==' => '<h1>',
  
'--' => '<h2>',
]
set_start_tags() #tags
$args = [
  
=> [
    
'==' => '<myh1>',
  ],
]
$expected = $returned
$returned = NULL
 
property pbx_text_to_html::start_tags value
$expected = $returned
$returned = [
  
'==' => '<myh1>',
  
'--' => '<h2>',
]