commands.sh

phpspec

all

A Behaviour Driven Development tool for PHP.

More info →

Options (2)

-c, --configboolean

Run specifications using a specific configuration file

Example: phpspec run {{[-c|--config]}} {{path/to/configuration_file}}
-b, --bootstrapboolean

Run specifications using a specific bootstrap file

Example: phpspec run {{[-b|--bootstrap]}} {{path/to/bootstrap_file}}

Examples (7)

Create a specification for a class

phpspec describe class_name

Run all specifications in the "spec" directory

Run a single specification

phpspec run path/to/class_specification_file

Run specifications using a specific configuration file

phpspec run [-c|--config] path/to/configuration_file

Run specifications using a specific bootstrap file

phpspec run [-b|--bootstrap] path/to/bootstrap_file

Disable code generation prompts

phpspec run --no-code-generation

Enable fake return values

phpspec run --fake
made by @shridhargupta | data from tldr-pages