Skip to content
Browse files

Fixed a wrong label reporting in unit test

  • Loading branch information...
1 parent 80fd938 commit 2bc305a036bf7332c378bd1b703e2acc4bbd3876 @diegolamonica committed Jul 28, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 unit-test/unit-test.common.php
View
2 unit-test/unit-test.common.php
@@ -102,7 +102,7 @@ public function throwIfNot($check, $success, $error){
public function throwIf($check, $success, $error){
$this->index+=1;
- $index = "[#{$this->id}.$this->index". ($this->stop?" STOP":''). '] ';
+ $index = "[#{$this->id}.$this->index". (($this->stop && $this->failedCount>0)?" STOP":''). '] ';
if($check || $this->stop && $this->failedCount>0 ){
if(!$this->stop) $this->failedCount += 1;
$args = func_get_args();

0 comments on commit 2bc305a

Please sign in to comment.
Something went wrong with that request. Please try again.