Skip to content

Commit 49327a9

Browse files
committed
Seg Set 12 00:22:06 BRT 2016
1 parent 28a4cfd commit 49327a9

File tree

2 files changed

+15
-5
lines changed

2 files changed

+15
-5
lines changed

tests/FlashTest.php

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,16 @@ class FlashTest extends PHPUnit_Framework_TestCase {
99

1010
protected $flash;
1111

12-
public function setUp()
13-
{
12+
public function __construct($name = null, array $data = [], $dataName = '')
13+
{
1414
$this->session = m::mock('FlashMessage\SessionStore');
15+
return parent::__construct($name, $data, $dataName);
16+
}
17+
18+
public function setUp()
19+
{
1520
$this->flash = new FlashNotifier($this->session);
16-
}
21+
}
1722

1823
/** @test */
1924
public function it_displays_default_flash_notifications()

tests/ImportantTest.php

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,14 @@ class ImportantTest extends PHPUnit_Framework_TestCase {
99

1010
protected $flash;
1111

12-
public function setUp()
13-
{
12+
public function __construct($name = null, array $data = [], $dataName = '')
13+
{
1414
$this->session = m::mock('FlashMessage\SessionStore');
15+
return parent::__construct($name, $data, $dataName);
16+
}
17+
18+
public function setUp()
19+
{
1520
$this->flash = new FlashNotifier($this->session);
1621
}
1722

0 commit comments

Comments
 (0)