fix some warnings when phpunit + xdebug