Fix travis builds.

Travis updated to phpunit 4 for PHP 5.3 and CakePHP needs phpunit 3.7.
Merge pull request #3431 from ADmad/2.4-travis

Fix travis builds.