This commit is contained in:
parent
02dd8b1a79
commit
e21971d3cb
@ -20,7 +20,7 @@ class GroupTest extends UnitTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function shouldBeRun($testCase, $filter){
|
public function shouldBeRun($testCase, $filter){
|
||||||
if( ! is_array($filter)) {
|
if ( ! is_array($filter)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
foreach($filter as $subFilter) {
|
foreach($filter as $subFilter) {
|
||||||
@ -44,15 +44,15 @@ class GroupTest extends UnitTestCase
|
|||||||
$testCase->run();
|
$testCase->run();
|
||||||
} catch(Exception $e) {
|
} catch(Exception $e) {
|
||||||
$this->_failed += 1;
|
$this->_failed += 1;
|
||||||
$this->_messages[] = "Unexpected exception thrown with message [" . $e->getMessage() . "] in " . get_class($testCase) . " on line " . $e->getLine();
|
$this->_messages[] = 'Unexpected exception thrown with message [' . $e->getMessage() . '] in ' . $e->getFile() . ' on line ' . $e->getLine();
|
||||||
}
|
}
|
||||||
$this->_passed += $testCase->getPassCount();
|
$this->_passed += $testCase->getPassCount();
|
||||||
$this->_failed += $testCase->getFailCount();
|
$this->_failed += $testCase->getFailCount();
|
||||||
$this->_messages = array_merge($this->_messages, $testCase->getMessages());
|
$this->_messages = array_merge($this->_messages, $testCase->getMessages());
|
||||||
|
|
||||||
$this->_testCases[$k] = null;
|
$this->_testCases[$k] = null;
|
||||||
if(PHP_SAPI === "cli"){
|
if(PHP_SAPI === 'cli'){
|
||||||
echo ".";
|
echo '.';
|
||||||
}
|
}
|
||||||
set_time_limit(900);
|
set_time_limit(900);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user