Skip to content

Commit

Permalink
Fixing formatting in docblocks.
Browse files Browse the repository at this point in the history
  • Loading branch information
mariuswilms authored and nateabele committed May 24, 2012
1 parent 936c02a commit ba697b8
Showing 1 changed file with 18 additions and 17 deletions.
35 changes: 18 additions & 17 deletions test/Report.php
Expand Up @@ -32,10 +32,10 @@
*
* $report->run();
*
* //Get the test stats:
* // Get the test stats:
* $report->stats();
*
* //Get test results:
* // Get test results:
* $report->results
* }}}
*
Expand All @@ -51,7 +51,7 @@
*
* $report->run();
*
* //Get test results, including filter results:
* // Get test results, including filter results:
* $report->results
* }}}
*
Expand All @@ -65,26 +65,27 @@ class Report extends \lithium\core\Object {
* Contains an instance of `lithium\test\Group`, which contains all unit tests to be executed
* this test run.
*
* @see lithium\test\Group
* @var object
*/
public $group = null;

/**
* Title of the group being run
* Title of the group being run.
*
* @var string
*/
public $title = null;
public $title;

/**
* group and filter results
* Group and filter results.
*
* @var array
*/
public $results = array('group' => array(), 'filters' => array());

/**
* start and end timers
* Start and end timers.
*
* @var array
*/
Expand All @@ -99,7 +100,7 @@ class Report extends \lithium\core\Object {
protected $_filters = array();

/**
* Construct Report Object
* Constructor.
*
* @param array $config Options array for the test run. Valid options are:
* - `'group'`: The test group with items to be run.
Expand All @@ -119,7 +120,7 @@ public function __construct(array $config = array()) {
}

/**
* undocumented function
* Initializer.
*
* @return void
*/
Expand All @@ -129,7 +130,7 @@ protected function _init() {
}

/**
* undocumented function
* Runs tests.
*
* @return void
*/
Expand All @@ -154,17 +155,17 @@ public function run() {
*
* @param string $class Classname of the filter for which to aggregate results.
* @param array $results Array of the filter results for
* later analysis by the filter itself.
* later analysis by the filter itself.
* @return void
*/
public function collect($class, $results) {
$this->results['filters'][$class][] = $results;
}

/**
* undocumented function
* Return statistics from the test runs.
*
* @return void
* @return array
*/
public function stats() {
$results = (array) $this->results['group'];
Expand Down Expand Up @@ -207,14 +208,14 @@ public function stats() {
function($value) { return is_array($value) ? count($value) : $value; }, $stats
);
$success = $count['passes'] == $count['asserts'] && $count['errors'] === 0;
return compact("stats", "count", "success");
return compact('stats', 'count', 'success');
}

/**
* Renders the test output (e.g. layouts and filter templates)
* Renders the test output (e.g. layouts and filter templates).
*
* @param string $template name of the template (eg: layout)
* @param string|array $data array from `_data()` method
* @param string $template name of the template (i.e. `'layout'`).
* @param string|array $data array from `_data()` method.
* @return string
* @filter
*/
Expand Down

0 comments on commit ba697b8

Please sign in to comment.