Esempio n. 1
0
 public function testGetAllTypesFromSessionWhouldWork()
 {
     $session = ['message' => 'Message', 'info' => 'Info', 'warning' => 'Warning', 'error' => 'Error'];
     Msg::setSessionHandler(new SessionHandler($session));
     $this->assertEquals('MessageInfoWarningError', Msg::getAll(false));
 }
Esempio n. 2
0
 /**
  * Register the service provider.
  *
  * @return void
  */
 public function register()
 {
     Msg::setSessionHandler($this->app['session']);
 }