コード例 #1
0
ファイル: Tableman.php プロジェクト: mechanicious/tableman
 public function testCompareColumnContent()
 {
     $columnBag = with(new \mechanicious\Columnizer\Columnizer($this->mockData))->columnizeRowArray();
     $tableman = new \mechanicious\Tableman\Tableman($columnBag);
     $this->assertFalse($tableman->compareColumnContent($tableman->get('name'), $tableman->get('id')));
     // Although the column headers change the content should stay the same
     $this->assertTrue($tableman->compareColumnContent($tableman->get('name'), new Column(array('Joe', 'Tony'), 'coolnames')));
 }