fix php warning when phpunit