67
67
use PHPUnit \Framework \Constraint \ExceptionCode ;
68
68
use PHPUnit \Framework \Constraint \ExceptionMessageIsOrContains ;
69
69
use PHPUnit \Framework \Constraint \ExceptionMessageMatchesRegularExpression ;
70
+ use PHPUnit \Framework \MockObject \Exception as MockObjectException ;
70
71
use PHPUnit \Framework \MockObject \Generator \Generator as MockGenerator ;
71
72
use PHPUnit \Framework \MockObject \MockBuilder ;
72
73
use PHPUnit \Framework \MockObject \MockObject ;
@@ -1220,7 +1221,7 @@ protected function setLocale(mixed ...$arguments): void
1220
1221
* @psalm-return MockObject&RealInstanceType
1221
1222
*
1222
1223
* @throws InvalidArgumentException
1223
- * @throws MockObject\Exception
1224
+ * @throws MockObjectException
1224
1225
* @throws NoPreviousThrowableException
1225
1226
*/
1226
1227
protected function createMock (string $ originalClassName ): MockObject
@@ -1247,7 +1248,7 @@ protected function createMock(string $originalClassName): MockObject
1247
1248
/**
1248
1249
* @psalm-param list<class-string> $interfaces
1249
1250
*
1250
- * @throws MockObject\Exception
1251
+ * @throws MockObjectException
1251
1252
*/
1252
1253
protected function createMockForIntersectionOfInterfaces (array $ interfaces ): MockObject
1253
1254
{
@@ -1272,7 +1273,7 @@ protected function createMockForIntersectionOfInterfaces(array $interfaces): Moc
1272
1273
* @psalm-return MockObject&RealInstanceType
1273
1274
*
1274
1275
* @throws InvalidArgumentException
1275
- * @throws MockObject\Exception
1276
+ * @throws MockObjectException
1276
1277
* @throws NoPreviousThrowableException
1277
1278
*/
1278
1279
protected function createConfiguredMock (string $ originalClassName , array $ configuration ): MockObject
@@ -1298,7 +1299,7 @@ protected function createConfiguredMock(string $originalClassName, array $config
1298
1299
* @psalm-return MockObject&RealInstanceType
1299
1300
*
1300
1301
* @throws InvalidArgumentException
1301
- * @throws MockObject\Exception
1302
+ * @throws MockObjectException
1302
1303
*/
1303
1304
protected function createPartialMock (string $ originalClassName , array $ methods ): MockObject
1304
1305
{
@@ -1328,7 +1329,7 @@ protected function createPartialMock(string $originalClassName, array $methods):
1328
1329
* @psalm-return MockObject&RealInstanceType
1329
1330
*
1330
1331
* @throws InvalidArgumentException
1331
- * @throws MockObject\Exception
1332
+ * @throws MockObjectException
1332
1333
*
1333
1334
* @deprecated https://github.com/sebastianbergmann/phpunit/issues/5240
1334
1335
*/
@@ -1359,7 +1360,7 @@ protected function createTestProxy(string $originalClassName, array $constructor
1359
1360
* @psalm-return MockObject&RealInstanceType
1360
1361
*
1361
1362
* @throws InvalidArgumentException
1362
- * @throws MockObject\Exception
1363
+ * @throws MockObjectException
1363
1364
*
1364
1365
* @deprecated https://github.com/sebastianbergmann/phpunit/issues/5241
1365
1366
*/
@@ -1389,7 +1390,7 @@ protected function getMockForAbstractClass(string $originalClassName, array $arg
1389
1390
/**
1390
1391
* Creates a mock object based on the given WSDL file.
1391
1392
*
1392
- * @throws MockObject\Exception
1393
+ * @throws MockObjectException
1393
1394
*
1394
1395
* @deprecated https://github.com/sebastianbergmann/phpunit/issues/5242
1395
1396
*/
@@ -1446,7 +1447,7 @@ protected function getMockFromWsdl(string $wsdlFile, string $originalClassName =
1446
1447
* @psalm-param trait-string $traitName
1447
1448
*
1448
1449
* @throws InvalidArgumentException
1449
- * @throws MockObject\Exception
1450
+ * @throws MockObjectException
1450
1451
*
1451
1452
* @deprecated https://github.com/sebastianbergmann/phpunit/issues/5243
1452
1453
*/
@@ -1475,7 +1476,7 @@ protected function getMockForTrait(string $traitName, array $arguments = [], str
1475
1476
*
1476
1477
* @psalm-param trait-string $traitName
1477
1478
*
1478
- * @throws MockObject\Exception
1479
+ * @throws MockObjectException
1479
1480
*
1480
1481
* @deprecated https://github.com/sebastianbergmann/phpunit/issues/5244
1481
1482
*/
@@ -2371,7 +2372,7 @@ private function hasExpectationOnOutput(): bool
2371
2372
* @psalm-return Stub&RealInstanceType
2372
2373
*
2373
2374
* @throws InvalidArgumentException
2374
- * @throws MockObject\Exception
2375
+ * @throws MockObjectException
2375
2376
* @throws NoPreviousThrowableException
2376
2377
*/
2377
2378
protected static function createStub (string $ originalClassName ): Stub
@@ -2396,7 +2397,7 @@ protected static function createStub(string $originalClassName): Stub
2396
2397
/**
2397
2398
* @psalm-param list<class-string> $interfaces
2398
2399
*
2399
- * @throws MockObject\Exception
2400
+ * @throws MockObjectException
2400
2401
*/
2401
2402
protected static function createStubForIntersectionOfInterfaces (array $ interfaces ): Stub
2402
2403
{
@@ -2417,7 +2418,7 @@ protected static function createStubForIntersectionOfInterfaces(array $interface
2417
2418
* @psalm-return Stub&RealInstanceType
2418
2419
*
2419
2420
* @throws InvalidArgumentException
2420
- * @throws MockObject\Exception
2421
+ * @throws MockObjectException
2421
2422
* @throws NoPreviousThrowableException
2422
2423
*/
2423
2424
final protected static function createConfiguredStub (string $ originalClassName , array $ configuration ): Stub
0 commit comments