NativeProxyTest.php 897 B

1234567891011121314151617181920212223242526272829303132333435363738
  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. * @group legacy
  17. *
  18. * @author Drak <drak@zikula.org>
  19. */
  20. class NativeProxyTest extends TestCase
  21. {
  22. public function testIsWrapper()
  23. {
  24. $proxy = new NativeProxy();
  25. $this->assertFalse($proxy->isWrapper());
  26. }
  27. public function testGetSaveHandlerName()
  28. {
  29. $name = ini_get('session.save_handler');
  30. $proxy = new NativeProxy();
  31. $this->assertEquals($name, $proxy->getSaveHandlerName());
  32. }
  33. }