1、生成测试文件 phpunit --generate-test inter/gen/DbStruct2ClassProcessTest 2、php执行和debug 若php.ini 中没有配置 则以下执行 php -dxdebug.mode=debug -dxdebug.client_host=127.0.0.1 -dxdebug.client_port=9013 -dxdebug.start_with_request=yes main.php php -dxdebug.mode=debug -dxdebug.start_with_request=yes main.php