PHPSTORM配置 PHP 单元测试

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

猜你喜欢

转载自blog.csdn.net/biyongyao/article/details/78155636