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 /
MDB_QueryTool /
tests /
[ HOME SHELL ]
Name
Size
Permission
Action
simpletest_tests
[ DIR ]
drwxr-xr-x
Common.php
1.28
KB
-rw-r--r--
config.php
2.33
KB
-rw-r--r--
GetAllTest.php
1.86
KB
-rw-r--r--
GetCountTest.php
2.33
KB
-rw-r--r--
GetQueryStringTest.php
1.19
KB
-rw-r--r--
GetTest.php
5.66
KB
-rw-r--r--
HavingTest.php
5
KB
-rw-r--r--
LimitTest.php
2.01
KB
-rw-r--r--
SetDbInstanceTest.php
1.38
KB
-rw-r--r--
sql.php
3.38
KB
-rw-r--r--
TestCase.php
1.5
KB
-rw-r--r--
WhereTest.php
2.01
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : GetQueryStringTest.php
<?php // // $Id: GetQueryStringTest.php 322098 2012-01-11 21:20:03Z danielc $ // require_once dirname(__FILE__) . '/TestCase.php'; /** * This class just checks if the query is returned, not if * the query was properly rendered. This should be subject to * some other tests! * * @package tests */ class tests_GetQueryStringTest extends tests_TestCase { function _setup() { $this->question = new tests_Common(TABLE_QUESTION); $this->question->setOption('raw', true); } function test_selectAll() { $this->_setup(); $this->assertStringEquals( 'SELECT '.TABLE_QUESTION.'.id AS id,'.TABLE_QUESTION.'.'.TABLE_QUESTION.' AS '.TABLE_QUESTION.' FROM '.TABLE_QUESTION ,$this->question->getQueryString()); } function test_selectWithWhere() { $this->_setup(); $this->question->setWhere('id=1'); $this->assertStringEquals( 'SELECT '.TABLE_QUESTION.'.id AS id,'.TABLE_QUESTION.'.'.TABLE_QUESTION.' AS '.TABLE_QUESTION.' FROM '.TABLE_QUESTION. ' WHERE id=1' ,$this->question->getQueryString()); } } ?>
Close