setBookend() public method

Method to set the bookend key.
public setBookend ( integer $key = Paginator::SINGLE_ARROWS ) : Paginator
$key integer
return Paginator
Ejemplo n.º 1
0
 public function testSetAndGetItems()
 {
     $p = new Paginator(array());
     $p->setBookend(Paginator::DOUBLE_ARROWS);
     $p->setItems(array(1, 2, 3));
     $this->assertEquals(3, count($p->getItems()));
     $this->assertEquals(3, $p->getItemCount());
 }