Ejemplo n.º 1
0
 /**
  * @param string $string
  * @param string|null $alias
  * @param string $expectedResult
  * @dataProvider getExpressionToQuoteDataProvider
  */
 public function testQuoteTableAsWithZendDbExpr($string, $alias, $expectedResult)
 {
     $this->zendDbExprMock->expects($this->once())->method('__toString')->willReturn($string);
     $this->assertEquals($expectedResult, $this->model->quoteTableAs($this->zendDbExprMock, $alias));
 }