Permalink
Browse files

Type fixes to handle test suite warnings.

  • Loading branch information...
1 parent 629e5a8 commit 126affcd53125ee72935b894ab3146e1a12ff08d @nateabele nateabele committed Jun 15, 2010
Showing with 3 additions and 3 deletions.
  1. +3 −3 libraries/lithium/test/Report.php
@@ -71,7 +71,7 @@ public function __construct(array $config = array()) {
'format' => 'txt',
'reporter' => 'console'
);
- parent::__construct((array) $config + $defaults);
+ parent::__construct($config + $defaults);
}
/**
@@ -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");

0 comments on commit 126affc

Please sign in to comment.