mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-08 04:52:11 +09:00
Moved DB unit tests from .\test-phpUnit to .\tests folder.
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9788 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
aada2366d1
commit
97470e4d40
99 changed files with 53 additions and 85 deletions
|
|
@ -1,23 +0,0 @@
|
|||
<?php
|
||||
|
||||
class Helper {
|
||||
static function cleanString($query){
|
||||
$query = trim(preg_replace('/\s+/', ' ',$query));
|
||||
$query = preg_replace('/\t+/', '',$query);
|
||||
$query = str_replace(" , ", ', ', $query);
|
||||
$query = str_replace(" ,", ',', $query);
|
||||
$query = str_replace("( ", '(', $query);
|
||||
$query = str_replace(" )", ')', $query);
|
||||
$query = str_replace(array("\r", "\r\n", "\n"), '*', $query);
|
||||
$query = strtolower($query);
|
||||
return $query;
|
||||
}
|
||||
|
||||
static function getXmlObject($xml_file){
|
||||
$xmlParser = XmlQueryParser::getInstance();
|
||||
return $xmlParser->getXmlFileContent($xml_file);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue