LinuxCommandLibrary

phpspec

TLDR

Run specifications

$ phpspec run
copy
Describe new class
$ phpspec describe [App\\ClassName]
copy
Run specific spec
$ phpspec run [spec/ClassSpec.php]
copy
Verbose output
$ phpspec run -v
copy
Generate code
$ phpspec run --no-interaction
copy

SYNOPSIS

phpspec [command] [options]

DESCRIPTION

phpspec is PHP specification framework. Behavior-driven development tool.
The tool uses SpecBDD methodology. Design-first approach.
phpspec specifies behavior.

PARAMETERS

run [SPEC]

Run specifications.
describe CLASS
Create new spec.
-v
Verbose output.
--no-interaction
Non-interactive mode.
--help
Display help.

CAVEATS

Different from PHPUnit. Focused on design. Object-oriented.

HISTORY

PhpSpec was created for behavior-driven PHP development and design.

SEE ALSO

phpunit(1), behat(1)

Copied to clipboard