_getTestEntityManager()); $sqlWalker = new SqlWalker($query, new ParserResult(), array()); $this->assertSame($expectedAlias, $sqlWalker->getSQLTableAlias($tableName)); } /** * @dataProvider getColumnNamesAndSqlAliases */ public function testGetSQLTableAliasIsSameForMultipleCalls($tableName) { $query = new Query($this->_getTestEntityManager()); $sqlWalker = new SqlWalker($query, new ParserResult(), array()); $this->assertSame($sqlWalker->getSQLTableAlias($tableName), $sqlWalker->getSQLTableAlias($tableName)); } /** * @private data provider * * @return string[][] */ public function getColumnNamesAndSqlAliases() { return array( array('aaaaa', 'a0_'), array('table', 't0_'), array('çtable', 't0_'), ); } }