单例测试phpunit

我的个人博客:逐步前行STEP

1、执行单例测试

./vendor/bin/phpunit

2、执行指定单例测试文件

./vendor/bin/phpunit   tests/BlogTest.php

3、执行指定测试函数

./vendor/bin/phpunit  --filter testPostArticle

4、执行指定文件的指定测试函数

./vendor/bin/phpunit  --filter testPostArticle  tests/BlogTest.php
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章