for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Imanghafoori\HeyMan\Situations;
use Imanghafoori\HeyMan\WatchingStrategies\EventManager;
final class EventSituations extends BaseSituation
{
/**
* @param mixed ...$event
*/
public function whenEventHappens(...$event)
$this->setManager(EventManager::class, $event);
}
public function whenYouReachCheckPoint($name)
$this->whenEventHappens('heyman_checkpoint_'.$name);