tests/Http/Cookie/SessionTest.php
/**
     * Tests the ability to explicitly forget a stored key.
     */
Tests the ability to explicitly forget a stored key.
Tests the ability to explicitly forget a stored key .
public function testSessionForget()
    {
        $this->session->put('testSessionForget', true);
        $this->assertTrue($this->session->get('testSessionForget'));
        $this->session->forget('testSessionForget');
        $this->assertNull($this->session->get('testSessionForget'));
    }
public function testSessionForget ( ) { $ this -> session -> put ( 'testSessionForget' , true ) ; $ this -> assertTrue ( $ this -> session -> get ( 'testSessionForget' ) ) ; $ this -> session -> forget ( 'testSessionForget' ) ; $ this -> assertNull ( $ this -> session -> get ( 'testSessionForget' ) ) ; }
Tests the ability to explicitly forget a stored key.
Tests the ability to explicitly forget a stored key .
// Put data // Pull and verify the data is correct // Forget data // Verify the key was forgotten