phpspec

phpspec

TLDR

Create a specification for a class

>_ phpspec describe [class_name]
copy

Run all specifications in the "spec" directory

>_ phpspec run
copy

Run a single specification

>_ phpspec run [path/to/class_specification_file]
copy

Run specifications using a specific configuration file

>_ phpspec run -c [path/to/configuration_file]
copy

Run specifications using a specific bootstrap file

>_ phpspec run -b [path/to/bootstrap_file]
copy

Disable code generation prompts

>_ phpspec run --no-code-generation
copy

Enable fake return values

>_ phpspec run --fake
copy

Copied to clipboard
free 100$ digital ocean credit