1
0
mirror of synced 2024-12-14 15:16:04 +03:00
This commit is contained in:
zYne 2007-09-29 14:31:40 +00:00
parent 02dd8b1a79
commit e21971d3cb

View File

@ -20,7 +20,7 @@ class GroupTest extends UnitTestCase
}
public function shouldBeRun($testCase, $filter){
if( ! is_array($filter)) {
if ( ! is_array($filter)) {
return true;
}
foreach($filter as $subFilter) {
@ -44,15 +44,15 @@ class GroupTest extends UnitTestCase
$testCase->run();
} catch(Exception $e) {
$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->_failed += $testCase->getFailCount();
$this->_messages = array_merge($this->_messages, $testCase->getMessages());
$this->_testCases[$k] = null;
if(PHP_SAPI === "cli"){
echo ".";
if(PHP_SAPI === 'cli'){
echo '.';
}
set_time_limit(900);
}