public function testAssemble()
 {
     $selector = new NowSelectExpression();
     $selector->setField('fieldname');
     $this->assertEquals('NOW()', QueryAssembler::stringify($selector));
     $selector->setAlias('current');
     $this->assertEquals('NOW() AS current', QueryAssembler::stringify($selector));
 }
 public function assembleNowSelectExpression(NowSelectExpression $expr)
 {
     return $expr->getFunction() . ($expr->hasAlias() ? ' AS ' . $this->escapeField($expr->getAlias()) : '');
 }