Skip to content

Commit

Permalink
Type fixes to handle test suite warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
nateabele committed Jun 18, 2010
1 parent 629e5a8 commit 126affc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libraries/lithium/test/Report.php
Expand Up @@ -71,7 +71,7 @@ public function __construct(array $config = array()) {
'format' => 'txt',
'reporter' => 'console'
);
parent::__construct((array) $config + $defaults);
parent::__construct($config + $defaults);
}

/**
Expand Down Expand Up @@ -156,9 +156,9 @@ public function stats() {
}
return $stats;
});
$stats = (array) $stats + $defaults;
$count = array_map(
function($value) { return is_array($value) ? count($value) : $value; },
$stats
function($value) { return is_array($value) ? count($value) : $value; }, $stats
);
$success = $count['passes'] == $count['asserts'] && $count['errors'] === 0;
return compact("stats", "count", "success");
Expand Down

0 comments on commit 126affc

Please sign in to comment.