Permalink
Browse files

Changing return from `_runTestMethod()`.

Removing returning of `$passed` as this was always `null`, because the
inner function was not returning anything.

Always returning `$this->_results` as already done in the upper body of
the method in some cases.
  • Loading branch information...
1 parent 952d9a5 commit 6e7e33a095ea1df822abb0e04401c56834a8ce8c @davidpersson davidpersson committed May 17, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 test/Unit.php
View
@@ -691,7 +691,7 @@ protected function _result($type, $info, array $options = array()) {
*
* @param string $method The name of the test method to run.
* @param array $options
- * @return mixed
+ * @return array Results of test runs - so far.
* @filter
*/
protected function _runTestMethod($method, $options) {
@@ -703,7 +703,7 @@ protected function _runTestMethod($method, $options) {
}
$params = compact('options', 'method');
- $passed = $this->_filter(__CLASS__ . '::run', $params, function($self, $params, $chain) {
+ $this->_filter(__CLASS__ . '::run', $params, function($self, $params, $chain) {
try {
$method = $params['method'];
$lineFlag = __LINE__ + 1;
@@ -726,7 +726,7 @@ protected function _runTestMethod($method, $options) {
$this->_expected = array();
$this->tearDown();
- return $passed;
+ return $this->_results;
}
/**

0 comments on commit 6e7e33a

Please sign in to comment.