/** * @dataProvider dataProviderCreateUrl * * @param string|string[] $lastKey * @param integer $pageSize * @param string $expectedUrl */ public function testCreateUrl($lastKey, $pageSize, $expectedUrl) { $pagination = new Pagination(); $pagination->route = 'item/list'; $this->assertEquals($expectedUrl, $pagination->createUrl($lastKey, $pageSize)); }