Esempio n. 1
0
 /**
  * @covers PagingInfo::newSorter
  */
 public function testNewSorter()
 {
     $orderColumn = 'username';
     $isAscending = false;
     $newPaging = $this->paging->newSorter($orderColumn, $isAscending);
     $this->assertInstanceOf('PagingInfo', $newPaging);
     $this->assertSame($orderColumn, $newPaging->getOrderByColumn());
     $this->assertFalse($newPaging->isOrderByAscending());
 }