JHtmlStringTest::testTruncate
Tests the JHtmlString::truncate method.
Signature
public function testTruncate(string
$text,
integer
$length,
boolean
$noSplit,
boolean
$allowedHtml,
string
$expected )
Parameters
-
$text
- The text to truncate.
-
$length
- The maximum length of the text.
-
$noSplit
- Don't split a word if that is where the cutoff occurs (default: true).
-
$allowedHtml
- Allow HTML tags in the output, and close any open tags (default: true).
-
$expected
- The expected result.
Returns
- void