Pho-PHPPHP 的 BDD 测试框架

联合创作 · 2023-09-20 08:58

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
浏览 5
点赞
评论
收藏
分享

手机扫一扫分享

编辑
举报
评论
图片
表情
推荐
点赞
评论
收藏
分享

手机扫一扫分享

编辑
举报