[tests] Fix tests on PHP 5.3.

Stupid PHP 5.3.