@@ -88,7 +88,7 @@ public function testCheckClientCredentialsThrowsIfInvalidClientClass()
88
88
->disableOriginalConstructor ()
89
89
->getMock ();
90
90
91
- $ this ->expectException ('InvalidArgumentException ' );
91
+ $ this ->setExpectedException ('InvalidArgumentException ' );
92
92
$ this ->storage ->checkClientCredentials ($ client , 'dummy ' );
93
93
}
94
94
@@ -138,7 +138,7 @@ public function testCreateAccessTokenThrowsOnInvalidClientClass()
138
138
->disableOriginalConstructor ()
139
139
->getMock ();
140
140
141
- $ this ->expectException ('InvalidArgumentException ' );
141
+ $ this ->setExpectedException ('InvalidArgumentException ' );
142
142
$ this ->storage ->createAccessToken ('foo ' , $ client , new User (42 ), 1 , 'foo bar ' );
143
143
}
144
144
@@ -221,7 +221,7 @@ public function testCreateRefreshTokenThrowsOnInvalidClientClass()
221
221
->disableOriginalConstructor ()
222
222
->getMock ();
223
223
224
- $ this ->expectException ('InvalidArgumentException ' );
224
+ $ this ->setExpectedException ('InvalidArgumentException ' );
225
225
$ this ->storage ->createRefreshToken ('foo ' , $ client , 42 , 1 , 'foo bar ' );
226
226
}
227
227
@@ -282,7 +282,7 @@ public function testCheckRestrictedGrantTypeThrowsOnInvalidClientClass()
282
282
->disableOriginalConstructor ()
283
283
->getMock ();
284
284
285
- $ this ->expectException ('InvalidArgumentException ' );
285
+ $ this ->setExpectedException ('InvalidArgumentException ' );
286
286
287
287
$ this ->storage ->checkRestrictedGrantType ($ client , 'foo ' );
288
288
}
@@ -303,7 +303,7 @@ public function testCheckUserCredentialsThrowsOnInvalidClientClass()
303
303
->disableOriginalConstructor ()
304
304
->getMock ();
305
305
306
- $ this ->expectException ('InvalidArgumentException ' );
306
+ $ this ->setExpectedException ('InvalidArgumentException ' );
307
307
308
308
$ this ->storage ->checkUserCredentials ($ client , 'Joe ' , 'baz ' );
309
309
}
@@ -401,7 +401,7 @@ public function testCreateAuthCodeThrowsOnInvalidClientClass()
401
401
->disableOriginalConstructor ()
402
402
->getMock ();
403
403
404
- $ this ->expectException ('InvalidArgumentException ' );
404
+ $ this ->setExpectedException ('InvalidArgumentException ' );
405
405
$ this ->storage ->createAuthCode ('foo ' , $ client , 42 , 'http://www.example.com/ ' , 1 , 'foo bar ' );
406
406
}
407
407
0 commit comments