highly extensible, highly enjoyable, BDD testing framework for PHP.

Peridot Events

Peridot features an event driven architecture. This has not only greatly simplified Peridot's own source code, it also allows testers to easily customize Peridot via plugins and reporters. The Peridot event emitter can be accessed via the peridot.php file:

<?php //peridot.php
use Evenement\EventEmitterInterface;
use Peridot\Core\Test;

return function(EventEmitterInterface $emitter) {
    $emitter->on('test.failed', function (Test $test) {
        //log the failure?
        //abort abort abort?
        //let your loved ones know about your shortcomings?

The following events are available for your testing pleasure: