JHtmlStringTest::testTruncateComplex
Tests the JHtmlString::truncateComplex method.
Signature
public function testTruncateComplex(string
$html,
integer
$maxLength,
boolean
$noSplit,
string
$expected )
Parameters
-
$html
- The text to truncate.
-
$maxLength
- The maximum length of the text.
-
$noSplit
- Don't split a word if that is where the cutoff occurs (default: true)
-
$expected
- The expected result.
Returns
- void