title: "Then /^STDOUT should be YAML containing:$/" post_status: publish comment_status: open taxonomy: category: - wp-cli-handbook post_tag: - Behat Steps - References - Repos


Then /^STDOUT should be YAML containing:$/

期望 STDOUT 是包含特定内容的 YAML。


用法

场景:我的示例场景
  当我运行 `wp cli alias list`
  那么 STDOUT 应该是包含以下内容的 YAML:
    """
    @all: 针对每个已注册的别名运行命令。
    @foo:
      path: {TEST_DIR}/foo
    """

Behat 步骤文档在每次发布时从 WP-CLI 代码库生成。如需改进,请提交一个拉取请求。


相关