mirror of
				https://github.com/yiisoft/yii2.git
				synced 2025-11-04 06:37:55 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			36 lines
		
	
	
		
			751 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			36 lines
		
	
	
		
			751 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
<?php
 | 
						|
/**
 | 
						|
 * @link https://www.yiiframework.com/
 | 
						|
 * @copyright Copyright (c) 2008 Yii Software LLC
 | 
						|
 * @license https://www.yiiframework.com/license/
 | 
						|
 */
 | 
						|
 | 
						|
namespace yiiunit\framework\web\session\sqlite;
 | 
						|
 | 
						|
use Yii;
 | 
						|
 | 
						|
/**
 | 
						|
 * Class DbSessionTest.
 | 
						|
 *
 | 
						|
 * @author Dmytro Naumenko <d.naumenko.a@gmail.com>
 | 
						|
 *
 | 
						|
 * @group db
 | 
						|
 * @group sqlite
 | 
						|
 */
 | 
						|
class DbSessionTest extends \yiiunit\framework\web\session\AbstractDbSessionTest
 | 
						|
{
 | 
						|
    protected function setUp()
 | 
						|
    {
 | 
						|
        parent::setUp();
 | 
						|
 | 
						|
        if (version_compare(Yii::$app->get('db')->getServerVersion(), '3.8.3', '<')) {
 | 
						|
            $this->markTestSkipped('SQLite < 3.8.3 does not support "WITH" keyword.');
 | 
						|
        }
 | 
						|
    }
 | 
						|
 | 
						|
    protected function getDriverNames()
 | 
						|
    {
 | 
						|
        return ['sqlite'];
 | 
						|
    }
 | 
						|
}
 |