Overview

Namespaces

  • Composer
    • Autoload
  • Guzzle
    • Common
      • Exception
    • Http
      • Curl
      • Exception
      • Message
        • Header
      • QueryAggregator
    • Parser
      • Cookie
      • Message
      • UriTemplate
      • Url
    • Plugin
      • Mock
    • Stream
  • Mockery
    • Adapter
      • Phpunit
    • CountValidator
    • Exception
    • Generator
      • StringManipulation
        • Pass
    • Loader
    • Matcher
  • None
  • Omnipay
    • Common
      • Exception
      • Message
    • Dummy
      • Message
    • Fatzebra
      • Message
  • PHP
  • Symfony
    • Component
      • EventDispatcher
        • Debug
        • DependencyInjection
        • Tests
          • Debug
          • DependencyInjection
      • HttpFoundation
        • File
          • Exception
          • MimeType
        • Session
          • Attribute
          • Flash
          • Storage
            • Handler
            • Proxy
        • Tests
          • File
            • MimeType
          • Session
            • Attribute
            • Flash
            • Storage
              • Handler
              • Proxy
      • Yaml
        • Exception
        • Tests

Classes

  • Symfony\Component\Yaml\Tests\A
  • Symfony\Component\Yaml\Tests\B
  • Symfony\Component\Yaml\Tests\DumperTest
  • Symfony\Component\Yaml\Tests\InlineTest
  • Symfony\Component\Yaml\Tests\ParseExceptionTest
  • Symfony\Component\Yaml\Tests\ParserTest
  • Symfony\Component\Yaml\Tests\YamlTest
  • Overview
  • Namespace
  • Function
  • Tree
 1: <?php
 2: 
 3: /*
 4:  * This file is part of the Symfony package.
 5:  *
 6:  * (c) Fabien Potencier <fabien@symfony.com>
 7:  *
 8:  * For the full copyright and license information, please view the LICENSE
 9:  * file that was distributed with this source code.
10:  */
11: 
12: namespace Symfony\Component\HttpFoundation\Tests\Session\Storage\Handler;
13: 
14: use Symfony\Component\HttpFoundation\Session\Storage\Handler\NullSessionHandler;
15: use Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage;
16: use Symfony\Component\HttpFoundation\Session\Session;
17: 
18: /**
19:  * Test class for NullSessionHandler.
20:  *
21:  * @author Drak <drak@zikula.org>
22:  *
23:  * @runTestsInSeparateProcesses
24:  * @preserveGlobalState disabled
25:  */
26: class NullSessionHandlerTest extends \PHPUnit_Framework_TestCase
27: {
28:     public function testSaveHandlers()
29:     {
30:         $storage = $this->getStorage();
31:         $this->assertEquals('user', ini_get('session.save_handler'));
32:     }
33: 
34:     public function testSession()
35:     {
36:         session_id('nullsessionstorage');
37:         $storage = $this->getStorage();
38:         $session = new Session($storage);
39:         $this->assertNull($session->get('something'));
40:         $session->set('something', 'unique');
41:         $this->assertEquals('unique', $session->get('something'));
42:     }
43: 
44:     public function testNothingIsPersisted()
45:     {
46:         session_id('nullsessionstorage');
47:         $storage = $this->getStorage();
48:         $session = new Session($storage);
49:         $session->start();
50:         $this->assertEquals('nullsessionstorage', $session->getId());
51:         $this->assertNull($session->get('something'));
52:     }
53: 
54:     public function getStorage()
55:     {
56:         return new NativeSessionStorage(array(), new NullSessionHandler());
57:     }
58: }
59: 
Omnipay Fat Zebra / Paystream Gateway Module API Documentation API documentation generated by ApiGen