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