Fixed unit test for PHP 5.3 environment