PHPSTORM配置 PHP 单元测试
安装单元测试 PHPUnit
➜ wget https://phar.phpunit.de/phpunit.phar ➜ chmod +x phpunit.phar ➜ sudo mv phpunit.phar /usr/local/bin/phpunit ➜ phpunit --version
- phpStrom -> languages & Frameworks -> PHP -> PHPUnit -> Path to phpunit.phar
- Default configuration file [phpunit.xml]
- 选中测试方法 control + shift + R