lithium\tests\cases\storage\SessionTest::testUnhandledWrite PHP Method

testUnhandledWrite() public method

Tests a scenario where no session handler is available that matches the passed parameters.
public testUnhandledWrite ( )
    public function testUnhandledWrite()
    {
        Session::config(array('conditional' => array('adapter' => new SessionStorageConditional())));
        $result = Session::write('key', 'value', array('fail' => true));
        $this->assertFalse($result);
    }