Example #1
0
 /**
  * @group group
  * @covers Query::getQuery
  */
 function testGroupBy()
 {
     $q = new Query('test_table');
     $q->addGroup('functiontastic()');
     $q->addGroup('columntastic');
     $q->addGroup('table.columntastic');
     $q_string = $q->getQuery()->__toString();
     $this->assertEquals("SELECT `test_table`.*\nFROM `test_table`\nGROUP BY functiontastic(), `columntastic`, `table`.`columntastic`", $q_string);
 }