NativeSessionHandlerTest.php 1.1 KB

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\Handler;
  11. use PHPUnit\Framework\TestCase;
  12. use Symfony\Component\HttpFoundation\Session\Storage\Handler\NativeSessionHandler;
  13. /**
  14. * Test class for NativeSessionHandler.
  15. *
  16. * @author Drak <drak@zikula.org>
  17. *
  18. * @runTestsInSeparateProcesses
  19. * @preserveGlobalState disabled
  20. * @group legacy
  21. */
  22. class NativeSessionHandlerTest extends TestCase
  23. {
  24. /**
  25. * @expectedDeprecation The Symfony\Component\HttpFoundation\Session\Storage\Handler\NativeSessionHandler class is deprecated since Symfony 3.4 and will be removed in 4.0. Use the \SessionHandler class instead.
  26. */
  27. public function testConstruct()
  28. {
  29. $handler = new NativeSessionHandler();
  30. $this->assertInstanceOf('SessionHandler', $handler);
  31. $this->assertTrue($handler instanceof NativeSessionHandler);
  32. }
  33. }