/** * @test */ public function buildTableFromAList() { $years = array(1989, 1992); $this->assertEquals($this->singleTableJSONModel(), $this->TableJsonBuilder->build($this->groupedList(), $years)); }
/** * @test */ public function buildTwoTables() { $years = array(1989, 1992); $groupedValues = array($this->groupedList(), $this->groupedList()); $this->assertEquals($this->doubleTableJSONModel(), $this->TableJsonBuilder->build($groupedValues, $years)); }
public function __construct() { $this->statistic = new Statistic(); parent::TableJsonBuilder(); }