File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 11
11
12
12
class CautionWithCatchesTest extends WorkshopExerciseTest
13
13
{
14
-
15
14
public function getExerciseClass (): string
16
15
{
17
16
return CautionWithCatches::class;
@@ -22,7 +21,7 @@ public function getApplication(): Application
22
21
return require __DIR__ . '/../../app/bootstrap.php ' ;
23
22
}
24
23
25
- public function testFailureWhenNoTryCatch ()
24
+ public function testFailureWhenNoTryCatch (): void
26
25
{
27
26
$ this ->runExercise ('no-try-catch.php ' );
28
27
@@ -31,7 +30,7 @@ public function testFailureWhenNoTryCatch()
31
30
$ this ->assertResultsHasFailure (Failure::class, 'No try/catch statement was found ' );
32
31
}
33
32
34
- public function testFailureWhenCapturingException ()
33
+ public function testFailureWhenCapturingException (): void
35
34
{
36
35
$ this ->runExercise ('captures-exception.php ' );
37
36
@@ -40,7 +39,7 @@ public function testFailureWhenCapturingException()
40
39
$ this ->assertResultsHasFailure (Failure::class, 'Exception variable was captured ' );
41
40
}
42
41
43
- public function testSuccessfulSolution ()
42
+ public function testSuccessfulSolution (): void
44
43
{
45
44
$ this ->runExercise ('solution.php ' );
46
45
You can’t perform that action at this time.
0 commit comments