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

# Failed test (./TextHelperTest.php at line 101) # got: '

A paragraph

and another one!

' # expected: '

A paragraph

and another one!

' ok 34 - text_simple_format() wrap all string with

# text_strip_links() ok 35 - text_strip_links() strips all links in input # auto_link_text() ok 36 - auto_link_text() converts emails to links ok 37 - auto_link_text() converts absolute URLs to links ok 38 - auto_link_text() takes a second parameter ok 39 - auto_link_text() converts emails and URLs if no second argument is given ok 40 - auto_link_text() converts URLs to links ok 41 - auto_link_text() converts URLs to links ok 42 - auto_link_text() converts URLs to links even if link does not start with http:// ok 43 - auto_link_text() converts URLs to links ok 44 - auto_link_text() converts URLs to links ok 45 - auto_link_text() converts URLs to links ok 46 - auto_link_text() converts URLs to links ok 47 - auto_link_text() truncates URLs in links ok 48 - auto_link_text() takes truncation parameters Looks like you failed 1 tests of 48.