Ejemplo n.º 1
0
 public function testToJson()
 {
     $this->paginator->setCurrentPageNumber(1);
     $json = $this->paginator->toJson();
     $expected = '"0":1,"1":2,"2":3,"3":4,"4":5,"5":6,"6":7,"7":8,"8":9,"9":10';
     $this->assertContains($expected, $json);
 }