如何在 phpStorm 中对 API 集成测试的代码进行 xdebug
我的环境:mac + php7.2.15
首先,需要安装phpunit. 参考:https://phpunit.de/getting-started/phpunit...
composer require --dev phpunit/phpunit ^7
然后,在下图中选择Use Composer autoloader
如果这里提示需要选择一个local interpreter,那么就需要如下图:
然后运行:
停在断点处:
推荐文章: