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 44
55use PhpSchool \PHP8Appreciate \Exercise \ThrowAnExpression ;
66use PhpSchool \PhpWorkshop \Application ;
7+ use PhpSchool \PhpWorkshop \Result \Cgi \GenericFailure ;
78use PhpSchool \PhpWorkshop \Result \Cgi \RequestFailure ;
89use PhpSchool \PhpWorkshop \Result \Cgi \Success ;
910use PhpSchool \PhpWorkshop \Result \Failure ;
@@ -28,13 +29,13 @@ public function testThrowingWrongException(): void
2829 $ this ->assertVerifyWasNotSuccessful ();
2930
3031 $ output = $ this ->getOutputResult ();
31-
32+
3233 self ::assertInstanceOf (Success::class, $ output ->getResults ()[0 ]);
33- self ::assertInstanceOf (RequestFailure ::class, $ output ->getResults ()[1 ]);
34+ self ::assertInstanceOf (GenericFailure ::class, $ output ->getResults ()[1 ]);
3435
3536 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 ()
3839 );
3940
4041 $ this ->assertOutputWasIncorrect ();
You can’t perform that action at this time.
0 commit comments