示例#1
0
 public function testgetTotalHTML()
 {
     //execute the method with required data preset and verify it returns expected result
     $fields = array('label' => array('display' => 1, 'total' => 'SUM', 'label' => 'total'));
     $totals = array('label' => array(10, 20, 30));
     $expected = '<tbody><tr><th>total Sum</th></tr><tr><td>60</td></tr></tbody>';
     $aor_Report = new AOR_Report();
     $actual = $aor_Report->getTotalHTML($fields, $totals);
     $this->assertSame($expected, $actual);
 }