コード例 #1
0
ファイル: Tableman.php プロジェクト: mechanicious/tableman
 public function testPadData()
 {
     $columnBag = with(new \mechanicious\Columnizer\Columnizer($this->mockData))->columnizeRowArray();
     $tableman = new \mechanicious\Tableman\Tableman($columnBag);
     $tableman->padData(new Column(array(true, true, false), 'is_human'));
     // Since the mockData['names'] was only 2 row large and we aligned the columns with 3 row large column
     // now or name column should be prefilled to 3 rows with null
     $this->assertEquals($tableman->get('name')->toArray(), array('Joe', 'Tony', null));
 }