tests/Http/Cookie/SessionTest.php
/**
     * Tests the ability to retrieve stored data.
     */
Tests the ability to retrieve stored data.
Tests the ability to retrieve stored data .
public function testSessionGet()
    {
        $this->assertNull($this->session->get('testSessionGet'));
        $this->assertTrue($this->session->get('testSessionGet', true));
        $this->session->put('testSessionGet', true);
        $this->assertTrue($this->session->get('testSessionGet'));
    }
public function testSessionGet ( ) { $ this -> assertNull ( $ this -> session -> get ( 'testSessionGet' ) ) ; $ this -> assertTrue ( $ this -> session -> get ( 'testSessionGet' , true ) ) ; $ this -> session -> put ( 'testSessionGet' , true ) ; $ this -> assertTrue ( $ this -> session -> get ( 'testSessionGet' ) ) ; }
Tests the ability to retrieve stored data.
Tests the ability to retrieve stored data .
// Nonexistent keys should return null (or second parameter value if specified) // Put data // Test that the data is retrieved