Skip to content
This repository was archived by the owner on Mar 24, 2020. It is now read-only.

Discussion about the implementation

phpspec edited this page Dec 30, 2011 · 7 revisions

This document is meant to explore an alternative interface for specs in PHPSpec2.

Problems with the existing implementation

  • Too much noise from PHP syntax
  • Not possible to have nested contexts/examples
  • Need to use spec() interceptor to add expectations

Goals of the new interface

  • Keep the focus of the developer on specifying the behaviour of his class
  • Eliminate as much as possible unnecessary syntax
  • Take into accounts the limitations and possibilities of PHP
  • Keep the spec framework maintainable
  • Allow for specs to be as readable as possible
Clone this wiki locally