Skip to content

Commit 307a8d1

Browse files
dnahrebeckidkarlovi
authored andcommitted
- revert changes
1 parent 8ccac19 commit 307a8d1

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Tests/Storage/OAuthStorageTest.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public function testCheckClientCredentialsThrowsIfInvalidClientClass()
8888
->disableOriginalConstructor()
8989
->getMock();
9090

91-
$this->expectException('InvalidArgumentException');
91+
$this->setExpectedException('InvalidArgumentException');
9292
$this->storage->checkClientCredentials($client, 'dummy');
9393
}
9494

@@ -138,7 +138,7 @@ public function testCreateAccessTokenThrowsOnInvalidClientClass()
138138
->disableOriginalConstructor()
139139
->getMock();
140140

141-
$this->expectException('InvalidArgumentException');
141+
$this->setExpectedException('InvalidArgumentException');
142142
$this->storage->createAccessToken('foo', $client, new User(42), 1, 'foo bar');
143143
}
144144

@@ -221,7 +221,7 @@ public function testCreateRefreshTokenThrowsOnInvalidClientClass()
221221
->disableOriginalConstructor()
222222
->getMock();
223223

224-
$this->expectException('InvalidArgumentException');
224+
$this->setExpectedException('InvalidArgumentException');
225225
$this->storage->createRefreshToken('foo', $client, 42, 1, 'foo bar');
226226
}
227227

@@ -282,7 +282,7 @@ public function testCheckRestrictedGrantTypeThrowsOnInvalidClientClass()
282282
->disableOriginalConstructor()
283283
->getMock();
284284

285-
$this->expectException('InvalidArgumentException');
285+
$this->setExpectedException('InvalidArgumentException');
286286

287287
$this->storage->checkRestrictedGrantType($client, 'foo');
288288
}
@@ -303,7 +303,7 @@ public function testCheckUserCredentialsThrowsOnInvalidClientClass()
303303
->disableOriginalConstructor()
304304
->getMock();
305305

306-
$this->expectException('InvalidArgumentException');
306+
$this->setExpectedException('InvalidArgumentException');
307307

308308
$this->storage->checkUserCredentials($client, 'Joe', 'baz');
309309
}
@@ -401,7 +401,7 @@ public function testCreateAuthCodeThrowsOnInvalidClientClass()
401401
->disableOriginalConstructor()
402402
->getMock();
403403

404-
$this->expectException('InvalidArgumentException');
404+
$this->setExpectedException('InvalidArgumentException');
405405
$this->storage->createAuthCode('foo', $client, 42, 'http://www.example.com/', 1, 'foo bar');
406406
}
407407

0 commit comments

Comments
 (0)