for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php declare(strict_types=1);
namespace BSP\EventManager;
trait EventRegistration
{
protected $recordedEvents = [];
public function registeredEvents(): array
return $this->recordedEvents;
}
public function clearRegisteredEvents(): void
$this->recordedEvents = [];