Started unit tests for condition and argument classes.

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0-DB@8577 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ucorina 2011-07-07 14:34:56 +00:00
parent 7112d518c8
commit 76019a4b2b
15 changed files with 537 additions and 108 deletions

View file

@ -31,6 +31,7 @@
}
function toString($withValue = true){
if(!$this->show()) return '';
if($withValue)
return $this->toStringWithValue();
return $this->toStringWithoutValue();
@ -51,6 +52,7 @@
}
function show(){
if($this->hasArgument() && !$this->argument->isValid()) return false;
switch($this->operation) {
case 'equal' :
case 'more' :