Linux ns1.utparral.edu.mx 6.8.0-79-generic #79~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 15 16:54:53 UTC 2 x86_64
Apache/2.4.58 (Unix) OpenSSL/1.1.1w PHP/8.2.12 mod_perl/2.0.12 Perl/v5.34.1
: 10.10.1.9 | : 10.10.1.254
Cant Read [ /etc/named.conf ]
daemon
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
README
+ Create Folder
+ Create File
/
opt /
lampp /
lib /
php /
test /
Pager /
tests /
[ HOME SHELL ]
Name
Size
Permission
Action
all_tests.php
643
B
-rw-r--r--
multibyte_post.php
1.35
KB
-rw-r--r--
pager_include.php
104
B
-rw-r--r--
pager_jumping_noData_test.php
1.05
KB
-rw-r--r--
pager_jumping_test.php
3.2
KB
-rw-r--r--
pager_jumping_tests.php
554
B
-rw-r--r--
pager_noData_test.php
1.39
KB
-rw-r--r--
pager_post_test.php
2.2
KB
-rw-r--r--
pager_post_test_simple.php
1.22
KB
-rw-r--r--
pager_post_tests.php
331
B
-rw-r--r--
pager_sliding_noData_test.php
846
B
-rw-r--r--
pager_sliding_notExpanded_test.php
1.73
KB
-rw-r--r--
pager_sliding_test.php
1.84
KB
-rw-r--r--
pager_sliding_tests.php
621
B
-rw-r--r--
pager_test.php
30.17
KB
-rw-r--r--
pager_tests.php
508
B
-rw-r--r--
pager_test_xss.php
1.27
KB
-rw-r--r--
pager_wrapper_include.php
146
B
-rw-r--r--
pager_wrapper_test.php
8.86
KB
-rw-r--r--
README
248
B
-rw-r--r--
simple_include.php
495
B
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : pager_sliding_test.php
<?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(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12), 'perPage' => 2, 'mode' => 'Sliding', ); $this->pager = Pager::factory($options); } function tearDown() { unset($this->pager); } function testPageRangeByPageId1() { $this->assertEqual(array(1, 5), $this->pager->getPageRangeByPageId(1)); } function testPageRangeByPageId4() { $this->assertEqual(array(2, 6), $this->pager->getPageRangeByPageId(4)); } function testPageRangeByPageId_outOfRange() { $this->assertEqual(array(0, 0), $this->pager->getPageRangeByPageId(20)); } function testPageRangeByPageId2() { $this->assertEqual(array(2, 6), $this->pager->getPageRangeByPageId(4)); } function testGetPageData() { $this->assertEqual(array(0=>1, 1=>2), $this->pager->getPageData()); } function testGetPageData2() { $this->assertEqual(array(2=>3, 3=>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(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12), 'perPage' => 20, 'mode' => 'Sliding', ); $this->pager = Pager::factory($options); $this->assertEqual('', $this->pager->links); } } ?>
Close