예제 #1
0
 /**
  * It should create a new cell if a non-existing column name is specified in "set".
  */
 public function testSetNonExisting()
 {
     $row = new Row(array('hello' => new Cell('goodbye')));
     $row->set('goodbye', 'hello');
     $this->assertInstanceOf('DTL\\Cellular\\Cell', $row['goodbye']);
     $this->assertEquals($row['goodbye']->getValue(), 'hello');
 }
예제 #2
0
 /**
  * Reurn a new row with the given groups.
  *
  * @param string[] $groups
  *
  * @return Row
  */
 public function createRow(array $groups = array())
 {
     $row = new Row(array());
     $row->setGroups($groups);
     return $row;
 }