菜谱项目

NativeProxyTest.php 877B

12345678910111213141516171819202122232425262728293031323334353637
  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 PHPUnit\Framework\TestCase;
  12. use Symfony\Component\HttpFoundation\Session\Storage\Proxy\NativeProxy;
  13. /**
  14. * Test class for NativeProxy.
  15. *
  16. * @author Drak <drak@zikula.org>
  17. */
  18. class NativeProxyTest extends TestCase
  19. {
  20. public function testIsWrapper()
  21. {
  22. $proxy = new NativeProxy();
  23. $this->assertFalse($proxy->isWrapper());
  24. }
  25. public function testGetSaveHandlerName()
  26. {
  27. $name = ini_get('session.save_handler');
  28. $proxy = new NativeProxy();
  29. $this->assertEquals($name, $proxy->getSaveHandlerName());
  30. }
  31. }