tests/Http/Cookie/SessionTest.php
/**
     * Tests the ability to check if a key exists.
     */
Tests the ability to check if a key exists.
Tests the ability to check if a key exists .
public function testSessionExists()
    {
        $this->assertFalse($this->session->exists('testSessionExists'));
        $this->session->put('testSessionExists', true);
        $this->session->put('testSessionExistsNull', null);
        $this->assertTrue($this->session->exists('testSessionExists'));
        $this->assertTrue($this->session->exists('testSessionExistsNull'));
    }
public function testSessionExists ( ) { $ this -> assertFalse ( $ this -> session -> exists ( 'testSessionExists' ) ) ; $ this -> session -> put ( 'testSessionExists' , true ) ; $ this -> session -> put ( 'testSessionExistsNull' , null ) ; $ this -> assertTrue ( $ this -> session -> exists ( 'testSessionExists' ) ) ; $ this -> assertTrue ( $ this -> session -> exists ( 'testSessionExistsNull' ) ) ; }
Tests the ability to check if a key exists.
Tests the ability to check if a key exists .
// Should return false if the session doesn't have the key // Put data // Should return true for existent keys regardless of value