1: <?php
2:
3: 4: 5: 6: 7: 8: 9: 10:
11:
12: namespace Symfony\Component\HttpFoundation\Tests\Session\Storage\Handler;
13:
14: use Symfony\Component\HttpFoundation\Session\Storage\Handler\NativeSessionHandler;
15:
16: 17: 18: 19: 20: 21: 22: 23:
24: class NativeSessionHandlerTest extends \PHPUnit_Framework_TestCase
25: {
26: public function testConstruct()
27: {
28: $handler = new NativeSessionHandler();
29:
30:
31:
32: if (PHP_VERSION_ID < 50400) {
33: $this->assertFalse($handler instanceof \SessionHandler);
34: $this->assertTrue($handler instanceof NativeSessionHandler);
35: } else {
36: $this->assertTrue($handler instanceof \SessionHandler);
37: $this->assertTrue($handler instanceof NativeSessionHandler);
38: }
39: }
40: }
41: