Exemplo n.º 1
0
 /**
  * Render Columns
  * @param  SQL\Columns|null $columns
  * @return string|null
  */
 public static function render($columns)
 {
     return $columns ? Columns::renderItem($columns) : null;
 }
Exemplo n.º 2
0
 /**
  * @dataProvider dataRenderItem
  * @covers Harp\Query\Compiler\Columns::renderItem
  */
 public function testRenderItem($values, $expected)
 {
     $values = new SQL\Columns($values);
     $this->assertEquals($expected, Compiler\Columns::renderItem($values));
 }