예제 #1
0
파일: MsgTest.php 프로젝트: escapework/msg
 public function testGetAllTypesFromSessionWhouldWork()
 {
     $session = ['message' => 'Message', 'info' => 'Info', 'warning' => 'Warning', 'error' => 'Error'];
     Msg::setSessionHandler(new SessionHandler($session));
     $this->assertEquals('MessageInfoWarningError', Msg::getAll(false));
 }
예제 #2
0
 /**
  * Register the service provider.
  *
  * @return void
  */
 public function register()
 {
     Msg::setSessionHandler($this->app['session']);
 }