@@ -54,7 +54,7 @@ public function testNonExistantTicket(): void
5454 $ this ->ticketValidator ->validateAndDeleteTicket ($ id , 'efg ' );
5555 $ this ->fail ('exception expected ' );
5656 } catch (CasException $ e ) {
57- $ this ->assertEquals (' INVALID_TICKET ' , $ e ->getCasCode ());
57+ $ this ->assertEquals (C:: ERR_INVALID_TICKET , $ e ->getCasCode ());
5858 $ this ->assertEquals ('Ticket \'' . $ id . '\' not recognized ' , $ e ->getMessage ());
5959 }
6060 }
@@ -77,7 +77,7 @@ public function testValidTicket(): void
7777 $ this ->ticketValidator ->validateAndDeleteTicket ($ id , $ serviceUrl );
7878 $ this ->fail ('exception expected ' );
7979 } catch (CasException $ e ) {
80- $ this ->assertEquals (' INVALID_TICKET ' , $ e ->getCasCode ());
80+ $ this ->assertEquals (C:: ERR_INVALID_TICKET , $ e ->getCasCode ());
8181 $ this ->assertEquals ('Ticket \'' . $ id . '\' not recognized ' , $ e ->getMessage ());
8282 }
8383 }
@@ -95,7 +95,7 @@ public function testWrongServiceUrlTicket(): void
9595 $ this ->ticketValidator ->validateAndDeleteTicket ($ id , $ serviceUrl );
9696 $ this ->fail ('exception expected ' );
9797 } catch (CasException $ e ) {
98- $ this ->assertEquals (' INVALID_SERVICE ' , $ e ->getCasCode ());
98+ $ this ->assertEquals (C:: ERR_INVALID_SERVICE , $ e ->getCasCode ());
9999 $ this ->assertEquals (
100100 "Mismatching service parameters: expected 'http://otherurl.com' but was: 'http://efh.com?a=b&' " ,
101101 $ e ->getMessage ()
@@ -118,7 +118,7 @@ public function testExpiredTicket(): void
118118 $ this ->ticketValidator ->validateAndDeleteTicket ($ id , $ serviceUrl );
119119 $ this ->fail ('exception expected ' );
120120 } catch (CasException $ e ) {
121- $ this ->assertEquals (' INVALID_TICKET ' , $ e ->getCasCode ());
121+ $ this ->assertEquals (C:: ERR_INVALID_TICKET , $ e ->getCasCode ());
122122 $ this ->assertEquals ('Ticket \'' . $ id . '\' has expired ' , $ e ->getMessage ());
123123 }
124124 // ensure ticket deleted after validation
0 commit comments