File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 4
4
5
5
use PhpSchool \PHP8Appreciate \Exercise \ThrowAnExpression ;
6
6
use PhpSchool \PhpWorkshop \Application ;
7
+ use PhpSchool \PhpWorkshop \Result \Cgi \GenericFailure ;
7
8
use PhpSchool \PhpWorkshop \Result \Cgi \RequestFailure ;
8
9
use PhpSchool \PhpWorkshop \Result \Cgi \Success ;
9
10
use PhpSchool \PhpWorkshop \Result \Failure ;
@@ -28,13 +29,13 @@ public function testThrowingWrongException(): void
28
29
$ this ->assertVerifyWasNotSuccessful ();
29
30
30
31
$ output = $ this ->getOutputResult ();
31
-
32
+
32
33
self ::assertInstanceOf (Success::class, $ output ->getResults ()[0 ]);
33
- self ::assertInstanceOf (RequestFailure ::class, $ output ->getResults ()[1 ]);
34
+ self ::assertInstanceOf (GenericFailure ::class, $ output ->getResults ()[1 ]);
34
35
35
36
self ::assertMatchesRegularExpression (
36
- '/Fatal error: Uncaught Exception: Access denied!/ ' ,
37
- $ output ->getResults ()[1 ]->getActualOutput ()
37
+ '/Fatal error: Uncaught Exception: Access denied!/ ' ,
38
+ $ output ->getResults ()[1 ]->getReason ()
38
39
);
39
40
40
41
$ this ->assertOutputWasIncorrect ();
You can’t perform that action at this time.
0 commit comments