Exemplo n.º 1
0
 /**
  * Return a quoted table name
  *
  * @param string   $tableName        The table name
  * @param string   $correlationName  The correlation name OPTIONAL
  * @return string
  */
 protected function getQuotedTable($tableName, $correlationName = null)
 {
     return $this->quote->quoteTableAs($tableName, $correlationName);
 }
Exemplo n.º 2
0
 /**
  * @param string|array $identifier
  * @param string $expectedResult
  * @dataProvider getStringArrayToQuoteWithAliasDataProvider
  */
 public function testQuoteTableAs($identifier, $alias, $expectedResult)
 {
     $this->assertEquals($expectedResult, $this->model->quoteTableAs($identifier, $alias));
 }