Pho-PHPPHP 的 BDD 測試框架
Pho-PHP 是 PHP 的 BDD 測試框架,它的靈感來自于 Jasmine 和 RSpec。它有十分熟悉的語法,以及在開發(fā)中可以監(jiān)控自動重啟的指令。它也可以用定制的匹配器進行擴展。
示例代碼:
Usage: pho [options] [files] Options -a --ascii Show ASCII art on completion -b --bootstrap <bootstrap> Bootstrap file to load -f --filter <pattern> Run specs containing a pattern -h --help Output usage information -n --namespace Only use namespaced functions -r --reporter <name> Specify the reporter to use -s --stop Stop on failure -v --version Display version number -w --watch Watch files for changes and rerun specs -C --no-color Disable terminal colors
評論
圖片
表情
