Skip to content

Commit 117ebb4

Browse files
committed
call TestSuite::run(), not runTests()
1 parent e469601 commit 117ebb4

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

src/FUnit.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1115,7 +1115,7 @@ public static function run($report = true, $filter = null, $report_format = null
11151115

11161116
// run the tests in the suite
11171117
FUnit::debug_out("Running tests in suite '" . $suite->getName() . "'");
1118-
$run_tests = $suite->runTests($filter);
1118+
$run_tests = $suite->run($filter);
11191119

11201120
if (static::$disable_reporting) {
11211121
FUnit::debug_out("Reporting disabled");

src/TestSuite.php

+5-3
Original file line numberDiff line numberDiff line change
@@ -303,12 +303,14 @@ public function testCounts()
303303
}
304304

305305
/**
306-
* runs the suite and returns the exit code
306+
* runs the suite and returns test results
307307
* @param string $filter
308-
* @return integer exit code
308+
* @return array
309309
*/
310310
public function run($filter = null)
311311
{
312-
312+
$rs = $this->runTests($filter);
313+
$this->run = true;
314+
return $rs;
313315
}
314316
}

0 commit comments

Comments
 (0)