App loading optimisation + unit tests to PHP 5.4
Merge pull request #826 from romainneutron/optimized-unit-tests

[3.9] App loading optimisation + unit tests to PHP 5.4