You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
756 B
36 lines
756 B
<?php
|
|
/**
|
|
* li₃: the most RAD framework for PHP (http://li3.me)
|
|
*
|
|
* Copyright 2012, Union of RAD. All rights reserved. This source
|
|
* code is distributed under the terms of the BSD 3-Clause License.
|
|
* The full license text can be found in the LICENSE.txt file.
|
|
*/
|
|
|
|
if ($success && $count['skips']) {
|
|
echo "{:green}OK, but skipped tests.{:end}\n";
|
|
} elseif ($success) {
|
|
echo "{:green}OK{:end}\n";
|
|
} else {
|
|
echo "{:red}FAIL{:end}\n";
|
|
}
|
|
echo "\n";
|
|
|
|
printf(
|
|
"%d / %d %s\n",
|
|
$count['passes'],
|
|
$count['asserts'],
|
|
$count['passes'] == 1 ? 'pass' : 'passes'
|
|
);
|
|
printf(
|
|
'%d %s',
|
|
$count['fails'],
|
|
$count['fails'] == 1 ? 'fail' : 'fails'
|
|
);
|
|
printf(
|
|
" and %d %s\n",
|
|
$count['exceptions'],
|
|
$count['exceptions'] == 1 ? 'exception' : 'exceptions'
|
|
);
|
|
|
|
?>
|