10
10
use Admin \Admin \Repository \AdminRepository ;
11
11
use AdminTest \Unit \UnitTest ;
12
12
use Doctrine \ORM \EntityManager ;
13
- use PHPUnit \Framework \MockObject \Exception ;
14
- use Psr \Container \ContainerExceptionInterface ;
15
- use Psr \Container \NotFoundExceptionInterface ;
13
+ use Doctrine \ORM \Exception \ORMException ;
14
+ use PHPUnit \Framework \MockObject \Exception as MockObjectException ;
16
15
use ReflectionClass ;
17
16
use ReflectionException ;
18
17
24
23
class AuthenticationAdapterTest extends UnitTest
25
24
{
26
25
/**
27
- * @throws Exception
26
+ * @throws MockObjectException
28
27
* @throws ReflectionException
29
28
*/
30
29
public function testAccessors (): void
@@ -48,8 +47,8 @@ public function testAccessors(): void
48
47
}
49
48
50
49
/**
51
- * @throws Exception
52
- * @throws \Exception
50
+ * @throws MockObjectException
51
+ * @throws ORMException
53
52
*/
54
53
public function testWillNotAuthenticateWithoutValidConfig (): void
55
54
{
@@ -98,8 +97,8 @@ public function testWillNotAuthenticateWithoutValidConfig(): void
98
97
}
99
98
100
99
/**
101
- * @throws Exception
102
- * @throws \Exception
100
+ * @throws MockObjectException
101
+ * @throws ORMException
103
102
* @group testing
104
103
*/
105
104
public function testWillNotAuthenticateWithInvalidIdentityClassConfig (): void
@@ -128,9 +127,8 @@ public function testWillNotAuthenticateWithInvalidIdentityClassConfig(): void
128
127
}
129
128
130
129
/**
131
- * @throws ContainerExceptionInterface
132
- * @throws NotFoundExceptionInterface
133
- * @throws \Exception
130
+ * @throws MockObjectException
131
+ * @throws ORMException
134
132
*/
135
133
public function testWillNotAuthenticateWithInvalidIdentityPropertyConfig (): void
136
134
{
@@ -158,8 +156,8 @@ public function testWillNotAuthenticateWithInvalidIdentityPropertyConfig(): void
158
156
}
159
157
160
158
/**
161
- * @throws Exception
162
- * @throws \Exception
159
+ * @throws MockObjectException
160
+ * @throws ORMException
163
161
*/
164
162
public function testWillNotAuthenticateWithInvalidCredentialPropertyConfig (): void
165
163
{
@@ -189,8 +187,8 @@ public function testWillNotAuthenticateWithInvalidCredentialPropertyConfig(): vo
189
187
}
190
188
191
189
/**
192
- * @throws Exception
193
- * @throws \Exception
190
+ * @throws MockObjectException
191
+ * @throws ORMException
194
192
*/
195
193
public function testWillNotAuthenticateWhenInvalidIdentity (): void
196
194
{
@@ -222,8 +220,8 @@ public function testWillNotAuthenticateWhenInvalidIdentity(): void
222
220
}
223
221
224
222
/**
225
- * @throws Exception
226
- * @throws \Exception
223
+ * @throws MockObjectException
224
+ * @throws ORMException
227
225
*/
228
226
public function testWillNotAuthenticateWhenInvalidPassword (): void
229
227
{
@@ -261,8 +259,8 @@ public function testWillNotAuthenticateWhenInvalidPassword(): void
261
259
}
262
260
263
261
/**
264
- * @throws Exception
265
- * @throws \Exception
262
+ * @throws MockObjectException
263
+ * @throws ORMException
266
264
*/
267
265
public function testWillNotAuthenticateWhenInvalidMethodSpecifiedInOptionsConfig (): void
268
266
{
@@ -309,8 +307,8 @@ public function testWillNotAuthenticateWhenInvalidMethodSpecifiedInOptionsConfig
309
307
}
310
308
311
309
/**
312
- * @throws Exception
313
- * @throws \Exception
310
+ * @throws MockObjectException
311
+ * @throws ORMException
314
312
*/
315
313
public function testWillNotAuthenticateWhenMissingValueInOptionsConfig (): void
316
314
{
@@ -354,8 +352,8 @@ public function testWillNotAuthenticateWhenMissingValueInOptionsConfig(): void
354
352
}
355
353
356
354
/**
357
- * @throws Exception
358
- * @throws \Exception
355
+ * @throws MockObjectException
356
+ * @throws ORMException
359
357
*/
360
358
public function testWillNotAuthenticateWhenMissingMessageInOptionsConfig (): void
361
359
{
@@ -399,8 +397,8 @@ public function testWillNotAuthenticateWhenMissingMessageInOptionsConfig(): void
399
397
}
400
398
401
399
/**
402
- * @throws Exception
403
- * @throws \Exception
400
+ * @throws MockObjectException
401
+ * @throws ORMException
404
402
*/
405
403
public function testWillAuthenticateWithOptionsConfig (): void
406
404
{
@@ -445,8 +443,8 @@ public function testWillAuthenticateWithOptionsConfig(): void
445
443
}
446
444
447
445
/**
448
- * @throws Exception
449
- * @throws \Exception
446
+ * @throws MockObjectException
447
+ * @throws ORMException
450
448
*/
451
449
public function testWillAuthenticateWithoutOptionsConfig (): void
452
450
{
0 commit comments