單例測試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
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章