!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/MDB_QueryTool/tests/   drwxr-xr-x
Free 9.91 GB of 61.93 GB (16.01%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     GetAllTest.php (1.86 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
//
//  $Id: GetAllTest.php 322098 2012-01-11 21:20:03Z danielc $
//

require_once dirname(__FILE__) . '/TestCase.php';

class 
tests_GetAllTest extends tests_TestCase
{
    function 
_setup()
    {
        
$this->user = new tests_Common(TABLE_USER);
        
$this->user->add(array('name' => 'some name'));
        
$this->user->add(array('name' => 'some name1'));
        
$this->user->add(array('name' => 'some name2'));
        
$this->user->add(array('name' => 'some name3'));
    }

    function 
test_getAll()
    {
        
$this->_setup();
        
$this->assertEquals(4,sizeof($this->user->getAll()));
    }

    function 
test_getAllWhereSearch()
    {
        
$this->_setup();
        
$this->user->addWhereSearch('name''some');
        
$this->assertEquals(4,sizeof($this->user->getAll()));
    }

    function 
test_getAllWhereSearch1()
    {
        
$this->_setup();
        
$this->user->addWhereSearch('name''4');
        
$this->assertEquals(0,sizeof($this->user->getAll()));
    }

    function 
test_getAllWhereSearch2()
    {
        
$this->_setup();
        
$this->user->addWhereSearch('name''some name');
        
$this->assertEquals(2,sizeof($this->user->getAll(0,2)));
    }

    function 
test_getAllWhereSearch8()
    {
        
$this->_setup();
        
$this->_setup();
        
$this->assertEquals(8,sizeof($this->user->getAll()));
    }

    function 
test_getAllWhereSearch10()
    {
        
$this->_setup();
        
$this->_setup();
        
$this->assertEquals(8,sizeof($this->user->getAll(0,10)));
    }

    function 
test_getAllWhereSearch0()
    {
        
$this->_setup();
        
$this->_setup();
        
$this->assertEquals(8,sizeof($this->user->getAll(0,0)));
    }

    function 
test_getAllWhereSearchEmpty()
    {
        
$this->_setup();
        
$this->user->addWhereSearch('name''some other name');
        
$this->assertEquals(array(), $this->user->getAll());
    }
}

?>

:: 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.4948 ]--