Beispiel #1
0
 /**
  * non existing attribute will be returned as null
  */
 public function testRowWithIndifferentAccessOnNotExistingAttribute()
 {
     $query = new Query('select 2 + 4 as foo from dual', 'T2');
     $rows = $query->fetchAll(Query::FETCH_INDIFFERENT);
     $row = $rows->first();
     $this->assertNull($row->bar);
 }