New tests.

This commit is contained in:
James Cole
2014-12-23 21:55:19 +01:00
parent b741565f57
commit 3ce317b170
7 changed files with 35 additions and 5 deletions

View File

@@ -28,6 +28,24 @@ if (!function_exists('mf')) {
return '€ ' . $string;
}
}
if (!function_exists('boolstr')) {
/**
* @param $boolean
*
* @return string
*/
function boolstr($boolean)
{
if (is_bool($boolean) && $boolean === true) {
return 'BOOLEAN TRUE';
}
if (is_bool($boolean) && $boolean === false) {
return 'BOOLEAN FALSE';
}
return 'NO BOOLEAN: ' . $boolean;
}
}
$app = new Illuminate\Foundation\Application;