1
0
mirror of synced 2025-01-10 11:07:10 +03:00
doctrine2/tests/Doctrine/Tests/ORM/Query/SqlWalkerTest.php

20 lines
556 B
PHP
Raw Normal View History

<?php
namespace Doctrine\Tests\ORM\Query;
use Doctrine\ORM\Query\SqlWalker;
use Doctrine\ORM\Query;
use Doctrine\Tests\OrmTestCase;
use Doctrine\ORM\Query\ParserResult;
class SqlWalkerTest extends OrmTestCase
{
public function testGetSQLTableAlias()
{
2014-10-19 19:09:27 +04:00
$query = new Query($this->_getTestEntityManager());
$sqlWalker = new SqlWalker($query, new ParserResult(), array());
$this->assertSame('t0_', $sqlWalker->getSQLTableAlias('table'));
$this->assertSame('t1_', $sqlWalker->getSQLTableAlias('çtable'));
}
}