phpspec/phpspec — pull request #177 by ciaranmcnulty (2013-08-27 23:54:55+00:00)
Title: Implementing --stop-on-failure option for CLI run command

Requested in issue #137

Adds new CLI option to RunCommand, `--stop-on-failure`. After each example, if the example failed then an exception is thrown that bubbles to the top of the stack and stops execution.

Because the listener that does this is lower priority than the formatters, error output all finishes before this happens.