예제 #1
0
 /**
  * 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());
 }
예제 #2
0
 /**
  * Helper Total
  */
 public function testHelperTotal()
 {
     $grid = new ArrayGrid();
     $this->assertEquals(10, $grid->total());
 }