main
phpspec manual
prophecy repo
phpspec repo
Chapters
Introduction
Spec BDD with phpspec
SpecBDD and TDD
SpecBDD and StoryBDD
Installation
Installation process:
Method #1 (Composer command):
Method #2 (Composer config file):
Result:
Getting Started
Examples
Specifying behaviour
Skipping examples
Prophet Objects
Stubs
Mocks
Spies
Let and Let Go
Upgrading to PhpSpec 4
Upgrading for Users
Upgrading for Extension Authors
Upgrading to phpspec 3
Upgrading for Users
Upgrading for Extension Authors
Configuration
PSR-4
Spec and source locations
Formatter
Options
Extensions
Custom matchers
Bootstrapping
Running phpspec
Describe Command
Run Command
Object Construction
Using the Constructor
Using a Factory Method
Overriding
Matchers
Identity Matcher
Comparison Matcher
Approximately Matcher
Throw Matcher
Trigger Matcher
Type Matcher
ObjectState Matcher
Count Matcher
Scalar Matcher
IterableContain Matcher
IterableKeyWithValue Matcher
IterableKey Matcher
IterateAs Matcher
IterateLike Matcher
StartIteratingAs Matcher
StringContain Matcher
StringStart Matcher
StringEnd Matcher
StringRegex Matcher
Inline Matcher
Templates
Overriding templates
Parameters
Extensions
Installation
Configuration
Example extensions
Working with Wrapped Objects
Index