您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

phpstorm配置phpunit,进行php单元测试

2024/3/8 21:14:27发布21次查看
phpstorm配置phpunit,进行php接口单元测试
1。安装php5.6,phpunit5.1,curl
mac 自带的默认是php5.5,需要升级,打开终端,运行:
curl -s http://php-osx.liip.ch/install.sh | bash -s 5.6
查看phpunit官网文档,根据文档步骤
wget https://phar.phpunit.de/phpunit.phar$ chmod +x phpunit.phar$ sudo mv phpunit.phar /usr/local/bin/phpunit $ phpunit --version phpunit 5.1.3 by sebastian bergmann and contributors
2。下载phpunit.phar文件,然后在phpstorm 中加载,如图
第二个就是phpunit.phar的路径
3.。加载phpunit安装目录:
4.。选择编译器
5,根据curl 模拟访问接口,
').addclass('pre-numbering').hide(); $(this).addclass('has-numbering').parent().append($numbering); for (i = 1; i <= lines; i++) { $numbering.append($(' ').text(i)); }; $numbering.fadein(1700); }); });
以上就介绍了phpstorm配置phpunit,进行php单元测试,包括了方面的内容,希望对php教程有兴趣的朋友有所帮助
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product