OQL normalization and dashlets have been made independent from the class MetaModel

Added OQL normalization unit tests (to be run on a standard installation)

SVN:trunk[2767]
This commit is contained in:
Romain Quetiez
2013-06-03 13:26:14 +00:00
parent 69c37b07de
commit 26db86beb2
8 changed files with 471 additions and 167 deletions

View File

@@ -62,6 +62,12 @@ function IsAValidTestClass($sClassName)
return true;
}
function GetTestClassLine($sClassName)
{
$oReflectionClass = new ReflectionClass($sClassName);
return $oReflectionClass->getStartLine();
}
function DisplayEvents($aEvents, $sTitle)
{
echo "<h4>$sTitle</h4>\n";
@@ -122,7 +128,9 @@ else if ($sTodo == 'exec')
else
{
$oTest = new $sTestClass();
$iStartLine = GetTestClassLine($sTestClass);
echo "<h3>Testing: ".$oTest->GetName()."</h3>\n";
echo "<h6>testlist.inc.php: $iStartLine</h6>\n";
$bRes = $oTest->Execute();
}