No Description

NativeProxyTest.php 864B

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. /*
  3. * This file is part of the Symfony package.
  4. *
  5. * (c) Fabien Potencier <fabien@symfony.com>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. namespace Symfony\Component\HttpFoundation\Tests\Session\Storage\Proxy;
  11. use Symfony\Component\HttpFoundation\Session\Storage\Proxy\NativeProxy;
  12. /**
  13. * Test class for NativeProxy.
  14. *
  15. * @author Drak <drak@zikula.org>
  16. */
  17. class NativeProxyTest extends \PHPUnit_Framework_TestCase
  18. {
  19. public function testIsWrapper()
  20. {
  21. $proxy = new NativeProxy();
  22. $this->assertFalse($proxy->isWrapper());
  23. }
  24. public function testGetSaveHandlerName()
  25. {
  26. $name = ini_get('session.save_handler');
  27. $proxy = new NativeProxy();
  28. $this->assertEquals($name, $proxy->getSaveHandlerName());
  29. }
  30. }