Stricter string comparisons.
More coding standard corrections.
Fix travis builds.

Travis updated to phpunit 4 for PHP 5.3 and CakePHP needs phpunit 3.7.
This is a hotfix for TextHelper which seems to have gone wrong in a merge. tail() is missing completly and the docs for truncate() are the ones for tail(). This fixes it.
Correct documentation.
Fix indentation style for .travis.yml