You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							21 lines
						
					
					
						
							528 B
						
					
					
				
			
		
		
	
	
							21 lines
						
					
					
						
							528 B
						
					
					
				<?php | 
						|
 | 
						|
namespace yiiunit\framework\db\sqlite; | 
						|
 | 
						|
class SqliteCommandTest extends \yiiunit\framework\db\CommandTest | 
						|
{ | 
						|
    protected function setUp() | 
						|
    { | 
						|
        $this->driverName = 'sqlite'; | 
						|
        parent::setUp(); | 
						|
    } | 
						|
 | 
						|
    public function testAutoQuoting() | 
						|
    { | 
						|
        $db = $this->getConnection(false); | 
						|
 | 
						|
        $sql = 'SELECT [[id]], [[t.name]] FROM {{tbl_customer}} t'; | 
						|
        $command = $db->createCommand($sql); | 
						|
        $this->assertEquals("SELECT \"id\", 't'.\"name\" FROM 'tbl_customer' t", $command->sql); | 
						|
    } | 
						|
}
 | 
						|
 |