1
0
mirror of synced 2024-12-13 14:56:01 +03:00

Strict standards: GroupTest::run and UnitTest::run should have the same signature

This commit is contained in:
jackbravo 2007-09-10 23:08:29 +00:00
parent f2ab7813fb
commit ca17b08ca1

View File

@ -33,7 +33,7 @@ class GroupTest extends UnitTestCase
}
return true;
}
public function run(HtmlReporter $reporter, $filter)
public function run(HtmlReporter $reporter = null, $filter = null)
{
$reporter->paintHeader();
foreach ($this->_testCases as $k => $testCase) {
@ -160,7 +160,7 @@ class UnitTestCase
}
$this->_failed++;
}
public function run()
public function run(HtmlReporter $reporter = null, $filter = null)
{
foreach (get_class_methods($this) as $method) {
if (substr($method, 0, 4) === 'test') {