Skip to content

Commit 897acc2

Browse files
author
Danilo
committed
Make constructor parameter optional and add setTestCase
1 parent c4688ed commit 897acc2

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

Test/Helper/AbstractHelper.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,12 @@ abstract class AbstractHelper
2424
*
2525
* @param \IC\Bundle\Base\TestBundle\Test\Functional\WebTestCase $testCase
2626
*/
27-
public function __construct(WebTestCase $testCase)
27+
public function __construct(WebTestCase $testCase = null)
28+
{
29+
$this->testCase = $testCase;
30+
}
31+
32+
public function setTestCase(WebTestCase $testCase)
2833
{
2934
$this->testCase = $testCase;
3035
}

0 commit comments

Comments
 (0)