Fixed PHP notices during tests on PHP 5.3 [ci skip]