cakephp/cakephp — pull request #3432 by dereuromark (2014-05-02 11:35:32+00:00)
Title: HOTFIX - For TextHelper

which seems to have gone wrong (messed up the file) in a merge.
tail() is missing completely and the docs for truncate() are the ones for tail().
This fixes it.

Also added missing test case to avoid this regression.