@@ -12,15 +12,17 @@ use Tester\TestCase;
12
12
13
13
require_once __DIR__ . '/../../vendor/autoload.php ' ;
14
14
15
-
15
+ /**
16
+ * @testCase
17
+ */
16
18
final class AsyncControlTest extends TestCase
17
19
{
18
20
19
21
const VALID_SIGNAL = 'control-form-submit ' ;
20
22
const FRAGMENT_PARAMETER = '_escaped_fragment_ ' ;
21
23
22
24
23
- public function testHandleAjax ()
25
+ public function testHandleAjax (): void
24
26
{
25
27
$ presenter = Mockery::mock (Presenter::class);
26
28
$ presenter ->shouldReceive ('isAjax ' )->once ()->andReturn (TRUE );
@@ -43,7 +45,7 @@ final class AsyncControlTest extends TestCase
43
45
}
44
46
45
47
46
- public function testHandleNoAjax ()
48
+ public function testHandleNoAjax (): void
47
49
{
48
50
$ presenter = Mockery::mock (Presenter::class);
49
51
$ presenter ->shouldReceive ('isAjax ' )->once ()->andReturn (FALSE );
@@ -60,7 +62,7 @@ final class AsyncControlTest extends TestCase
60
62
}
61
63
62
64
63
- public function testRenderAsyncLoadLink ()
65
+ public function testRenderAsyncLoadLink (): void
64
66
{
65
67
/**
66
68
* @var AsyncControl|Mockery\Mock $control
@@ -85,7 +87,7 @@ final class AsyncControlTest extends TestCase
85
87
}
86
88
87
89
88
- public function testRenderWithSignal ()
90
+ public function testRenderWithSignal (): void
89
91
{
90
92
$ presenter = Mockery::mock (Presenter::class);
91
93
$ presenter ->shouldReceive ('getParameter ' )->once ()->with (self ::FRAGMENT_PARAMETER )->andReturn (NULL );
@@ -101,7 +103,7 @@ final class AsyncControlTest extends TestCase
101
103
}
102
104
103
105
104
- public function testRenderWithFragment ()
106
+ public function testRenderWithFragment (): void
105
107
{
106
108
$ presenter = Mockery::mock (Presenter::class);
107
109
$ presenter ->shouldReceive ('getParameter ' )->once ()->with (self ::FRAGMENT_PARAMETER )->andReturn ('' );
@@ -115,7 +117,7 @@ final class AsyncControlTest extends TestCase
115
117
}
116
118
117
119
118
- public function testRenderAsyncRenderer ()
120
+ public function testRenderAsyncRenderer (): void
119
121
{
120
122
$ presenter = Mockery::mock (Presenter::class);
121
123
$ presenter ->shouldReceive ('getParameter ' )->once ()->with (self ::FRAGMENT_PARAMETER )->andReturn (NULL );
@@ -135,7 +137,7 @@ final class AsyncControlTest extends TestCase
135
137
}
136
138
137
139
138
- protected function tearDown ()
140
+ protected function tearDown (): void
139
141
{
140
142
parent ::tearDown ();
141
143
Mockery::close ();
0 commit comments