Skip to content

Commit

Permalink
Don't fatal out if there are no unit tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
yunosh committed Mar 3, 2014
1 parent 25fcfc2 commit 73ae5e3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion components/lib/Components/Qc/Task/Unit.php
Expand Up @@ -68,12 +68,15 @@ public function run(&$options)
return false;
}

$result = null;
foreach ($iterator as $file) {
if ($file->getFilename() == 'AllTests.php') {
$result = Horde_Test_AllTests::init(strval($file))->run();
}
}

return $result->errorCount() + $result->failureCount();
if ($result) {
return $result->errorCount() + $result->failureCount();
}
}
}

0 comments on commit 73ae5e3

Please sign in to comment.