Esempio n. 1
0
 /**
  * @covers ::__construct
  * @covers ::all
  */
 public function testConstruct()
 {
     $columns = array(10, 20);
     $sql = new SQL\Columns($columns);
     $this->assertEquals(null, $sql->getContent());
     $this->assertEquals($columns, $sql->all());
 }
Esempio n. 2
0
 /**
  * Render Columns object
  * @param  SQL\Columns $item
  * @return string
  */
 public static function renderItem(SQL\Columns $item)
 {
     return Compiler::braced(Arr::join(', ', Arr::map(__NAMESPACE__ . '\\Compiler::name', $item->all())));
 }