PHPSTORM配置 PHP 单元测试

来源:互联网 发布:apache与nginx的进程 编辑:程序博客网 时间:2024/06/08 05:53

PHPSTORM配置 PHP 单元测试

  • 安装单元测试 PHPUnit

    ➜ wget https://phar.phpunit.de/phpunit.phar➜ chmod +x phpunit.phar➜ sudo mv phpunit.phar /usr/local/bin/phpunit➜ phpunit --version 
    1. phpStrom -> languages & Frameworks -> PHP -> PHPUnit -> Path to phpunit.phar
    2. Default configuration file [phpunit.xml]
    3. 选中测试方法 control + shift + R
原创粉丝点击