PNG  IHDR* pHYs+ IDATx]n#; cdLb Ǚ[at¤_:uP}>!Usă cag޿ ֵNu`ݼTâabO7uL&y^wFٝA"l[|ŲHLN밪4*sG3|Dv}?+y߉{OuOAt4Jj.u]Gz*҉sP'VQKbA1u\`& Af;HWj hsO;ogTu uj7S3/QzUr&wS`M$X_L7r2;aE+ώ%vikDA:dR+%KzƉo>eOth$z%: :{WwaQ:wz%4foɹE[9<]#ERINƻv溂E%P1i01 |Jvҗ&{b?9g=^wζXn/lK::90KwrюO\!ջ3uzuGv^;騢wq<Iatv09:tt~hEG`v;3@MNZD.1]L:{ծI3`L(÷ba")Y.iljCɄae#I"1 `3*Bdz>j<fU40⨬%O$3cGt]j%Fߠ_twJ;ABU8vP3uEԑwQ V:h%))LfraqX-ۿX]v-\9I gl8tzX ]ecm)-cgʒ#Uw=Wlێn(0hPP/ӨtQ“&J35 $=]r1{tLuǮ*i0_;NƝ8;-vݏr8+U-kruȕYr0RnC]*ެ(M:]gE;{]tg(#ZJ9y>utRDRMdr9㪩̞zֹb<ģ&wzJM"iI( .ꮅX)Qw:9,i좜\Ԛi7&N0:asϓc];=ΗOӣ APqz93 y $)A*kVHZwBƺnWNaby>XMN*45~ղM6Nvm;A=jֲ.~1}(9`KJ/V F9[=`~[;sRuk]rєT!)iQO)Y$V ی ۤmzWz5IM Zb )ˆC`6 rRa}qNmUfDsWuˤV{ Pݝ'=Kֳbg,UҘVz2ﴻnjNgBb{? ߮tcsͻQuxVCIY۠:(V뺕 ٥2;t`@Fo{Z9`;]wMzU~%UA蛚dI vGq\r82iu +St`cR.6U/M9IENDB` REDROOM
PHP 5.6.40
Preview: pager_jumping_test.php Size: 3.20 KB
/home/ankaservis/azad.ankaservis.com/muhasebe/Pager/tests/pager_jumping_test.php

<?php
// $Id: pager_jumping_test.php,v 1.4 2004/05/11 09:14:22 quipo Exp $

require_once 'simple_include.php';
require_once 'pager_include.php';

class TestOfPagerJumping extends UnitTestCase {
    var $pager;
    function TestOfPagerJumping($name='Test of Pager_Jumping') {
        $this->UnitTestCase($name);
    }
    function setUp() {
        $options = array(
            'itemData' => array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12),
            'perPage'  => 5,
            'mode'     => 'Jumping',
            'delta'    => 2
        );
        $this->pager = Pager::factory($options);
    }
    function tearDown() {
        unset($this->pager);
    }
    function testPageIdByOffset1() {
        $this->assertEqual(1, $this->pager->getPageIdByOffset(1));
    }
    function testPageIdByOffset5() {
        $this->assertEqual(1, $this->pager->getPageIdByOffset(5));
    }
    function testPageIdByOffset6() {
        $this->assertEqual(2, $this->pager->getPageIdByOffset(6));
    }
    function testPageRangeByPageId1() {
        $this->assertEqual(array(1, 2), $this->pager->getPageRangeByPageId(1));
    }
    function testPageRangeByPageId2() {
        $this->assertEqual(array(1, 2), $this->pager->getPageRangeByPageId(2));
    }
    function testPageRangeByPageId3() {
        $this->assertEqual(array(3, 3), $this->pager->getPageRangeByPageId(3));
    }
    function testPageRangeByPageId_outOfRange() {
        $this->assertEqual(array(0, 0), $this->pager->getPageRangeByPageId(20));
    }
    function testGetPageData() {
        $this->assertEqual(array(0=>1, 1=>2, 2=>3, 3=>4, 4=>5), $this->pager->getPageData());
    }
    function testGetPageData2() {
        $this->assertEqual(array(5=>6, 6=>7, 7=>8, 8=>9, 9=>10), $this->pager->getPageData(2));
    }
    function testGetPageData_OutOfRange() {
        $this->assertEqual(false, $this->pager->getPageData(4));
    }
    /**
     * Returns offsets for given pageID. Eg, if you pass pageID=5 and your
     * delta is 2, it will return 3 and 7. A pageID of 6 would give you 4 and 8
     * If the method is called without parameter, pageID is set to currentPage#.
     *
     * Given a PageId, it returns the limits of the range of pages displayed.
     * While getOffsetByPageId() returns the offset of the data within the current
     * page, this method returns the offsets of the page numbers interval.
     * E.g., if you have perPage=10 and pageId=3, it will return you 1 and 10.
     * PageID of 8 would give you 1 and 10 as well, because 1 <= 8 <= 10.
     * PageID of 11 would give you 11 and 20.
     *
     * @param pageID PageID to get offsets for
     * @return array  First and last offsets
     * @access public
     */
    /**
     * Given a PageId, it returns the limits of the range of pages displayed.
     * While getOffsetByPageId() returns the offset of the data within the
     * current page, this method returns the offsets of the page numbers interval.
     * E.g., if you have perPage=10 and pageId=3, it will return you 1 and 10.
     * PageID of 8 would give you 1 and 10 as well, because 1 <= 8 <= 10.
     * PageID of 11 would give you 11 and 20.
     *
     * @param pageID PageID to get offsets for
     * @return array  First and last offsets
     * @access public
     */
}
?>

Directory Contents

Dirs: 0 × Files: 21

Name Size Perms Modified Actions
619 B lrw-r--r-- 2017-05-21 19:35:02
Edit Download
1.30 KB lrw-r--r-- 2017-05-21 19:35:02
Edit Download
104 B lrw-r--r-- 2017-05-21 19:35:02
Edit Download
1.05 KB lrw-r--r-- 2017-05-21 19:35:02
Edit Download
3.20 KB lrw-r--r-- 2017-05-21 19:35:02
Edit Download
535 B lrw-r--r-- 2017-05-21 19:35:02
Edit Download
1.39 KB lrw-r--r-- 2017-05-21 19:35:02
Edit Download
2.20 KB lrw-r--r-- 2017-05-21 19:35:02
Edit Download
331 B lrw-r--r-- 2017-05-21 19:35:02
Edit Download
1.22 KB lrw-r--r-- 2017-05-21 19:35:02
Edit Download
846 B lrw-r--r-- 2017-05-21 19:35:02
Edit Download
1.73 KB lrw-r--r-- 2017-05-21 19:35:02
Edit Download
1.84 KB lrw-r--r-- 2017-05-21 19:35:02
Edit Download
601 B lrw-r--r-- 2017-05-21 19:35:02
Edit Download
30.17 KB lrw-r--r-- 2017-05-21 19:35:02
Edit Download
489 B lrw-r--r-- 2017-05-21 19:35:02
Edit Download
1.27 KB lrw-r--r-- 2017-05-21 19:35:02
Edit Download
146 B lrw-r--r-- 2017-05-21 19:35:02
Edit Download
8.86 KB lrw-r--r-- 2017-05-21 19:35:02
Edit Download
248 B lrw-r--r-- 2017-05-21 19:35:02
Edit Download
495 B lrw-r--r-- 2017-05-21 19:35:02
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).
© 2026 REDROOM — Secure File Manager. All rights reserved. Built with ❤️ & Red Dark UI