Files
tldr/pages.zh/common/phpspec.md

32 lines
611 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# phpspec
> 一个用于PHP的行为驱动开发工具。
> 更多信息:<https://phpspec.net>。
- 为一个类创建一个规范:
`phpspec describe {{class_name}}`
- 运行“spec”目录中的所有规范
`phpspec run`
- 运行单个规范:
`phpspec run {{path/to/class_specification_file}}`
- 使用特定的配置文件运行规范:
`phpspec run -c {{path/to/configuration_file}}`
- 使用特定的引导文件运行规范:
`phpspec run -b {{path/to/bootstrap_file}}`
- 禁用代码生成提示:
`phpspec run --no-code-generation`
- 启用假返回值:
`phpspec run --fake`