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