Ignore methods in code coverage that are not implemented.

This commit is contained in:
James Cole
2015-01-25 11:36:34 +01:00
parent 64ce53ac30
commit f3460cca49
12 changed files with 42 additions and 1 deletions

View File

@@ -35,6 +35,7 @@ class Steam
}
/**
* @codeCoverageIgnore
* @param $boolean
*
* @return string
@@ -61,12 +62,18 @@ class Steam
{
$pct = $repetition->currentamount / $piggyBank->targetamount * 100;
if ($pct > 100) {
// @codeCoverageIgnoreStart
return 100;
// @codeCoverageIgnoreEnd
} else {
return floor($pct);
}
}
/**
* @codeCoverageIgnore
* @throws \Exception
*/
public function removeEmptyBudgetLimits()
{
$user = \Auth::user();