remove() public static method

public static remove ( )
Beispiel #1
0
 private function saveMessagesWithEmptyCheck($messages)
 {
     if ($messages) {
         Session::set('messages', $messages);
     } else {
         Session::remove('messages');
     }
 }
Beispiel #2
0
 /**
  * @test
  */
 public function removeShouldDoNothingIfElementDoesNotExist()
 {
     //when
     Session::remove('key1');
     //then
     Assert::thatSession()->isEmpty();
 }
Beispiel #3
0
 /**
  * @test
  */
 public function shouldSaveStatsIfDebugIsOn()
 {
     //given
     Config::overrideProperty('debug')->with(true);
     Session::remove('stats_queries');
     Route::get('/sample/save', 'sample#save');
     //when
     $this->get('/sample/save');
     //then
     $this->assertNotEmpty(Session::get('stats_queries'));
 }
Beispiel #4
0
 public static function reset()
 {
     Session::remove('stats_queries');
 }