예제 #1
0
 public function testFetchTwoColumns()
 {
     $values = $this->fetcher->fetchColumn('value');
     $ids = $this->fetcher->fetchColumn('id');
     $this->assertCount(4, $values);
     $this->assertCount(4, $ids);
 }
예제 #2
0
 /**
  * @return Result
  */
 public function loadResult()
 {
     if (is_null($this->result)) {
         $this->loadFetcher();
         $this->result = $this->fetcher->fetchAll();
     }
     return $this->result;
 }