filter() public method

Pivots to table.
public filter ( DataTable $table )
$table Piwik\DataTable The table to manipulate.
 public function test_filter_CorrectlyLimitsTheColumnNumber_WhenColumnLimitProvided()
 {
     $this->loadPlugins('Referrers', 'UserCountry', 'CustomVariables');
     $table = $this->getTableToFilter(true);
     $pivotFilter = new PivotByDimension($table, "Referrers.getKeywords", "Referrers.SearchEngine", $column = 'nb_visits', $columnLimit = 3, $fetchBySegment = false);
     $pivotFilter->filter($table);
     $expectedRows = array(array('label' => 'row 1', 'col 2' => false, 'col 4' => false, 'General_Others' => 1), array('label' => 'row 2', 'col 2' => 5, 'col 4' => false, 'General_Others' => 3), array('label' => 'row 3', 'col 2' => 7, 'col 4' => 32, 'General_Others' => 9));
     $this->assertTableRowsEquals($expectedRows, $table);
 }