Beispiel #1
0
 public function testSelect()
 {
     // default
     $query = new Query();
     $query->select('*');
     $this->assertEquals(['*'], $query->select);
     $this->assertNull($query->distinct);
     $this->assertEquals(null, $query->selectOption);
     $query = new Query();
     $query->select('id, name', 'something')->distinct(true);
     $this->assertEquals(['id', 'name'], $query->select);
     $this->assertTrue($query->distinct);
     $this->assertEquals('something', $query->selectOption);
 }