1
0
mirror of synced 2025-01-25 09:41:40 +03:00
doctrine2/tests/Doctrine/Tests/ORM/Query/SqlWalkerTest.php
2014-10-19 17:10:39 +02:00

26 lines
659 B
PHP

<?php
namespace Doctrine\Tests\ORM\Query;
use Doctrine\ORM\Query\SqlWalker;
use Doctrine\ORM\Query;
use Doctrine\Tests\OrmTestCase;
use Doctrine\ORM\Query\ParserResult;
/**
* Tests for {@see \Doctrine\ORM\Query\SqlWalker}
*
* @covers \Doctrine\ORM\Query\SqlWalker
*/
class SqlWalkerTest extends OrmTestCase
{
public function testGetSQLTableAlias()
{
$query = new Query($this->_getTestEntityManager());
$sqlWalker = new SqlWalker($query, new ParserResult(), array());
$this->assertSame('t0_', $sqlWalker->getSQLTableAlias('table'));
$this->assertSame('t1_', $sqlWalker->getSQLTableAlias('çtable'));
}
}