public function itShouldAcceptACustomPaddingStringWhenTruncating() { $string = "My string is getting to long for the text where I want to use it."; $truncated = Ra_StringHelper::truncate($string, 30, false, "--"); $this->spec($truncated)->should->be("My string is getting to long--"); }