Pho-PHPPHP 的 BDD 测试框架
Pho-PHP 是 PHP 的 BDD 测试框架,它的灵感来自于 Jasmine 和 RSpec。它有十分熟悉的语法,以及在开发中可以监控自动重启的指令。它也可以用定制的匹配器进行扩展。
示例代码:
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
评论
