for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace SP\Phpunit;
/**
* @author Ivan Kerin <[email protected]>
* @copyright 2016, Clippings Ltd.
* @license http://spdx.org/licenses/BSD-3-Clause
*/
trait FailureActionTrait
{
* @var callable[]
private $failureActions = [];
* @param callable $callback
public function addFailureAction(callable $callback)
$this->failureActions []= $callback;
return $this;
}
* @return callable[]
public function getFailureActions()
return $this->failureActions;