/** * @expectedException \Exception */ public function testFlushEvents() { $event = Event::create(); $event->attach('order', function () { echo 'Order Iphone6'; }); $event->flush('order'); $event->trigger('order'); }
/** * Initialize the Events */ public function __construct() { parent::boot($this); }