Development

Changeset 24190

You must first sign up to be able to contribute.

Changeset 24190

Show
Ignore:
Timestamp:
11/20/09 12:34:10 (4 years ago)
Author:
bschussek
Message:

[lime] Fixed return value of the test suite for plan mismatch

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • tools/lime/branches/2.0/lib/LimeTestSuite.php

    r23701 r24190  
    110110    $this->output->flush(); 
    111111 
     112    $planned = $this->output->getPlanned(); 
     113    $passed = $this->output->getPassed(); 
    112114    $failed = $this->output->getFailed(); 
    113115    $errors = $this->output->getErrors(); 
     
    115117    $skipped = $this->output->getSkipped(); 
    116118 
    117     return 0 == ($failed + $errors + $warnings + $skipped)
     119    return 0 == ($failed + $errors + $warnings + $skipped) && $planned == $passed
    118120  } 
    119121} 
  • tools/lime/branches/2.0/lib/output/LimeOutputInspectable.php

    r23701 r24190  
    1515  private 
    1616    $output       = null, 
     17    $planned      = 0, 
    1718    $passed       = 0, 
    1819    $failed       = 0, 
     
    3132  { 
    3233    return $this->output->supportsThreading(); 
     34  } 
     35 
     36  public function getPlanned() 
     37  { 
     38    return $this->planned; 
    3339  } 
    3440 
     
    8086  public function plan($amount) 
    8187  { 
     88    $this->planned = $amount; 
    8289    $this->output->plan($amount); 
    8390  }