/** * Array Source Filters */ public function testFilterLike() { $grid = new ArrayGrid(); $grid->addFilter('email', Grid::FILTER_LIKE, '^m@'); // preg_match('/^m@/', email) $this->assertEquals(1, $grid->pages()); $this->assertEquals(2, $grid->total()); }
/** * Helper Total */ public function testHelperTotal() { $grid = new ArrayGrid(); $this->assertEquals(10, $grid->total()); }