1..60 # truncate_text() ok 1 - truncate_text() does nothing on an empty string ok 2 - truncate_text() truncates to 30 characters by default ok 3 - truncate_text() adds ... to truncated text ok 4 - truncate_text() takes the max length as its second argument ok 5 - truncate_text() takes the ... text as its third argument ok 6 - truncate_text() accepts a truncate lastspace boolean as its fourth argument ok 7 - truncate_text() accepts a truncate lastspace boolean as its fourth argument ok 8 - truncate_text() handles unicode characters using mbstring if available ok 9 - truncate_text() sets back the internal encoding in case it changes it ok 10 - truncate_text() truncate text after the first found pattern after 200 characters ok 11 - truncate_text() truncate text after the last found pattern before 200 characters ok 12 - truncate_text() does nothing for a text that not exceed 200 characters ok 13 - truncate_text() whitout truncate_pattern on text, truncate it just after 200 characters # highlight_text() ok 14 - text_highlighter() highlights a word given as its second argument ok 15 - text_highlighter() highlights all occurrences of a word given as its second argument ok 16 - text_highlighter() takes a pattern as its third argument ok 17 - text_highlighter() returns an empty string if input is empty ok 18 - text_highlighter() returns an empty string if input is empty ok 19 - text_highlighter() does nothing is string to highlight is not present ok 20 - text_highlighter() returns input if string to highlight is not present ok 21 - text_highlighter() escapes search string to be safe in a regex ok 22 - text_highlighter() escapes search string to be safe in a regex ok 23 - text_highlighter() escapes search string to be safe in a regex ok 24 - text_highlighter() escapes search string to be safe in a regex # excerpt_text() ok 25 - text_excerpt() return an empty string if argument is empty ok 26 - text_excerpt() return an empty string if phrase is empty ok 27 - text_excerpt() creates an excerpt of a text ok 28 - text_excerpt() creates an excerpt of a text ok 29 - text_excerpt() creates an excerpt of a text ok 30 - text_excerpt() takes a fifth argument allowing excerpt on whitespace ok 31 - text_excerpt() takes a fifth argument allowing excerpt on whitespace ok 32 - text_excerpt() takes a fifth argument allowing excerpt on whitespace ok 33 - text_excerpt() does nothing if the search string is not in input # wrap_text() ok 34 - wrap_text() wraps long lines with a default of 80 ok 35 - wrap_text() takes a line length as its second argument ok 36 - wrap_text() takes a line length as its second argument # simple_format_text() ok 37 - text_simple_format() replaces \n by
ok 38 - text_simple_format() replaces \n\n by

ok 39 - text_simple_format() replaces \n\n\n\n by

ok 40 - text_simple_format() wrap all string with

ok 41 - text_simple_format() Ticket #6824 # text_strip_links() ok 42 - text_strip_links() strips all links in input ok 43 - text_strip_links() strips all links in input # auto_link_text() ok 44 - auto_link_text() converts emails to links ok 45 - auto_link_text() converts absolute URLs to links ok 46 - auto_link_text() takes a second parameter ok 47 - auto_link_text() converts emails and URLs if no second argument is given ok 48 - auto_link_text() converts URLs to links ok 49 - auto_link_text() converts URLs to links ok 50 - auto_link_text() converts URLs to links even if link does not start with http:// ok 51 - auto_link_text() converts URLs to links ok 52 - auto_link_text() converts URLs to links ok 53 - auto_link_text() converts URLs to links ok 54 - auto_link_text() converts URLs to links ok 55 - auto_link_text() truncates URLs in links ok 56 - auto_link_text() takes truncation parameters ok 57 - auto_link_text() converts URLs with complex fragments to links ok 58 - auto_link_text() converts URLs with complex fragments and trailing text to links ok 59 - auto_link_text() does not double-link emails ok 60 - auto_link_text() does not double-link emails # Looks like everything went fine.