centos安装phpunit
来源:互联网 发布:网络机顶盒和iptv 编辑:程序博客网 时间:2024/06/06 02:28
wget https://phar.phpunit.de/phpunit.pharchmod +x phpunit.pharmv phpunit.phar /usr/local/bin/phpunitphpunit --version
查看输出
[root@iz2ze3tbnjm8wpys7oxb3yz develop]# phpunit --versionPHPUnit 6.4.3 by Sebastian Bergmann and contributors.
说明安装成功
写个简单demo 单元测试文件
<?phpuse PHPUnit\Framework\TestCase; class StackTest extends TestCase { public function testPushAndPop() { $stack = []; $this->assertEquals(0, count($stack)); array_push($stack, 'foo'); $this->assertEquals('foo', $stack[count($stack)-1]); $this->assertEquals(1, count($stack)); $this->assertEquals('foo', array_pop($stack)); $this->assertEquals(0, count($stack)); } } ?>
保存为test.php
phpunit test.php
查看输出
PHPUnit 6.4.3 by Sebastian Bergmann and contributors.. 1 / 1 (100%)Time: 60 ms, Memory: 8.00MBOK (1 test, 5 assertions)
说明phpunit已经安装成功
阅读全文
0 0
- centos下安装PHPUnit
- centos安装phpunit
- centos linux安装PHPUnit 配置PHPUnit (深入浅出PHPUnit 1)
- 安装PHPUnit
- PHPUnit安装
- PHPUnit 安装
- phpunit安装
- PHPUnit安装
- phpunit 安装
- phpunit 安装
- phpunit安装
- PHPUnit安装
- PHPUnit使用指南之安装PHPUnit
- centos - phpunit - install - error
- PHPUnit袖珍指南-第四章 安装PHPUnit
- PHPUnit袖珍指南-第四章 安装PHPUnit
- 【phpunit】phpunit初次安装使用简记
- PHPunit 中phpunit selenium 扩展的安装
- vue.js快速搭建图书管理平台
- Point on Spiral CodeForces
- vivo X7Plus预售:解决用户痛点 做高颜值的实力派
- 发布会聚焦直播,百度联手全民TV加速直播场景革命
- 5个步骤完成一个专业的用户调研过程
- centos安装phpunit
- 腾讯安全构建人才价值体系 创新网络安全人才培养模式
- CODING推动行业升级--码市开发宝,构建云端软件开发生态闭环
- Webview的一些问题汇总以及解决方法
- 福特投资初创公司Civil Maps:用高精度地图为自动驾驶保驾护航
- rails link_to 使用
- 大数据Spark03_02 IDEA下创建Spark项目
- 使用MDC为Logback slf4 日志记录线程ID,区分每次执行的会话日志
- 微信小程序 --- 出现脚本错误或者未正确调用 Page()