aspect->compileCode('{$text|truncate:$count:$delim:$by_words:$middle}'); $this->assertEquals($out, $tpl->fetch(array( "text" => $in, "count" => $count, "delim" => $delim, "by_words" => $by_words, "middle" => $middle ))); } }