- Home
- BDD Testing Tools
- phpspec
On the recordRead 4 Oct 202612 facts
phpspec
Plans and prices
phpspec
Free
PHP SpecBDD framework · installed as a project development dependency through Composer
Read 4 Oct 2026 · phpspec.net
On the record
- BDD workflow
- Its SpecBDD workflow describes an object's behavior, implements enough code to meet the specification, and then refactors the code.phpspec.net · read 4 Oct 2026
- Code generation
- The configuration page documents a describe command that creates spec and source class files according to configured naming and path rules.phpspec.net · read 4 Oct 2026
- Configuration
- Project settings can be supplied in phpspec.yml, .phpspec.yml, or phpspec.yml.dist, with options for suites, paths, formatters, extensions, and bootstrapping.phpspec.net · read 4 Oct 2026
- Distribution
- The official site directs users to install phpspec in a PHP project with Composer and run its executable from the project bin directory.phpspec.net · read 4 Oct 2026
- Extension support
- The manual says extensions can add formatters and register custom matcher classes.phpspec.net · read 4 Oct 2026
- Installation
- The manual says to install phpspec and its dependencies through Composer as a project development dependency.phpspec.net · read 4 Oct 2026
- Intended use
- The manual describes phpspec as a tool for specifying how classes implement features, at the implementation level.phpspec.net · read 4 Oct 2026
- Matchers
- The manual lists built-in matchers for identity, comparison, exceptions, types, object state, counts, iterables, and strings.phpspec.net · read 4 Oct 2026
- Output formats
- The configuration manual lists progress, html, pretty, junit, dot, and tap as built-in formatters.phpspec.net · read 4 Oct 2026
- PHP requirement
- The installation page says to ensure PHP 5.6 or 7 is installed.phpspec.net · read 4 Oct 2026
- Purpose
- phpspec is a PHP toolset for driving emergent design by specification.phpspec.net · read 4 Oct 2026
- Test doubles
- The manual documents using stubs to specify collaborator return values, mocks to expect calls, and spies to check calls after behavior runs.phpspec.net · read 4 Oct 2026