/** * @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()); }
/** * 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()))); }