mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-12 07:11:42 +09:00
add some unit tests for CUBRID
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0-DB@8456 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
d7cf3cb731
commit
e41c45433e
10 changed files with 814 additions and 9 deletions
14
test-phpUnit/Helper.class.php
Normal file
14
test-phpUnit/Helper.class.php
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
<?php
|
||||
|
||||
class Helper {
|
||||
function cleanQuery($query){
|
||||
$query = trim(preg_replace('/\s+/', ' ',$query));
|
||||
$query = str_replace(" , ", ', ', $query);
|
||||
$query = str_replace("( ", '(', $query);
|
||||
$query = str_replace(" )", ')', $query);
|
||||
$query = strtolower($query);
|
||||
return $query;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue