"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "tests/framework/db/ConnectionTest.php" between
yii2-2.0.35.tar.gz and yii2-2.0.36.tar.gz

About: Yii 2 is a high-performance component-based PHP framework for developing large-scale Web applications (source).

ConnectionTest.php  (yii2-2.0.35):ConnectionTest.php  (yii2-2.0.36)
skipping to change at line 88 skipping to change at line 88
public function testQuoteTableName() public function testQuoteTableName()
{ {
$connection = $this->getConnection(false, false); $connection = $this->getConnection(false, false);
$this->assertEquals('`table`', $connection->quoteTableName('table')); $this->assertEquals('`table`', $connection->quoteTableName('table'));
$this->assertEquals('`table`', $connection->quoteTableName('`table`')); $this->assertEquals('`table`', $connection->quoteTableName('`table`'));
$this->assertEquals('`schema`.`table`', $connection->quoteTableName('sch ema.table')); $this->assertEquals('`schema`.`table`', $connection->quoteTableName('sch ema.table'));
$this->assertEquals('`schema`.`table`', $connection->quoteTableName('sch ema.`table`')); $this->assertEquals('`schema`.`table`', $connection->quoteTableName('sch ema.`table`'));
$this->assertEquals('`schema`.`table`', $connection->quoteTableName('`sc hema`.`table`')); $this->assertEquals('`schema`.`table`', $connection->quoteTableName('`sc hema`.`table`'));
$this->assertEquals('{{table}}', $connection->quoteTableName('{{table}}' )); $this->assertEquals('{{table}}', $connection->quoteTableName('{{table}}' ));
$this->assertEquals('(table)', $connection->quoteTableName('(table)')); $this->assertEquals('(table)', $connection->quoteTableName('(table)'));
$this->assertEquals('`table(0)`', $connection->quoteTableName('table(0)' ));
} }
public function testQuoteColumnName() public function testQuoteColumnName()
{ {
$connection = $this->getConnection(false, false); $connection = $this->getConnection(false, false);
$this->assertEquals('`column`', $connection->quoteColumnName('column')); $this->assertEquals('`column`', $connection->quoteColumnName('column'));
$this->assertEquals('`column`', $connection->quoteColumnName('`column`') ); $this->assertEquals('`column`', $connection->quoteColumnName('`column`') );
$this->assertEquals('[[column]]', $connection->quoteColumnName('[[column ]]')); $this->assertEquals('[[column]]', $connection->quoteColumnName('[[column ]]'));
$this->assertEquals('{{column}}', $connection->quoteColumnName('{{column }}')); $this->assertEquals('{{column}}', $connection->quoteColumnName('{{column }}'));
$this->assertEquals('(column)', $connection->quoteColumnName('(column)') ); $this->assertEquals('(column)', $connection->quoteColumnName('(column)') );
 End of changes. 1 change blocks. 
0 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)