[ticket/12962] Install test dependencies on travis

PHPBB3-12962
[ticket/12962] Run UI tests only when php version>=5.4

PHPBB3-12962