菜谱项目

NativeSessionHandlerTest.php 863B

1234567891011121314151617181920212223242526272829303132333435
  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. */
  21. class NativeSessionHandlerTest extends TestCase
  22. {
  23. public function testConstruct()
  24. {
  25. $handler = new NativeSessionHandler();
  26. $this->assertTrue($handler instanceof \SessionHandler);
  27. $this->assertTrue($handler instanceof NativeSessionHandler);
  28. }
  29. }