Skip to content

Commit 2b15cb6

Browse files
Merge branch '9.6' into 10.5
2 parents 71685c3 + 39b6123 commit 2b15cb6

File tree

1 file changed

+13
-12
lines changed

1 file changed

+13
-12
lines changed

src/Framework/TestCase.php

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@
6767
use PHPUnit\Framework\Constraint\ExceptionCode;
6868
use PHPUnit\Framework\Constraint\ExceptionMessageIsOrContains;
6969
use PHPUnit\Framework\Constraint\ExceptionMessageMatchesRegularExpression;
70+
use PHPUnit\Framework\MockObject\Exception as MockObjectException;
7071
use PHPUnit\Framework\MockObject\Generator\Generator as MockGenerator;
7172
use PHPUnit\Framework\MockObject\MockBuilder;
7273
use PHPUnit\Framework\MockObject\MockObject;
@@ -1220,7 +1221,7 @@ protected function setLocale(mixed ...$arguments): void
12201221
* @psalm-return MockObject&RealInstanceType
12211222
*
12221223
* @throws InvalidArgumentException
1223-
* @throws MockObject\Exception
1224+
* @throws MockObjectException
12241225
* @throws NoPreviousThrowableException
12251226
*/
12261227
protected function createMock(string $originalClassName): MockObject
@@ -1247,7 +1248,7 @@ protected function createMock(string $originalClassName): MockObject
12471248
/**
12481249
* @psalm-param list<class-string> $interfaces
12491250
*
1250-
* @throws MockObject\Exception
1251+
* @throws MockObjectException
12511252
*/
12521253
protected function createMockForIntersectionOfInterfaces(array $interfaces): MockObject
12531254
{
@@ -1272,7 +1273,7 @@ protected function createMockForIntersectionOfInterfaces(array $interfaces): Moc
12721273
* @psalm-return MockObject&RealInstanceType
12731274
*
12741275
* @throws InvalidArgumentException
1275-
* @throws MockObject\Exception
1276+
* @throws MockObjectException
12761277
* @throws NoPreviousThrowableException
12771278
*/
12781279
protected function createConfiguredMock(string $originalClassName, array $configuration): MockObject
@@ -1298,7 +1299,7 @@ protected function createConfiguredMock(string $originalClassName, array $config
12981299
* @psalm-return MockObject&RealInstanceType
12991300
*
13001301
* @throws InvalidArgumentException
1301-
* @throws MockObject\Exception
1302+
* @throws MockObjectException
13021303
*/
13031304
protected function createPartialMock(string $originalClassName, array $methods): MockObject
13041305
{
@@ -1328,7 +1329,7 @@ protected function createPartialMock(string $originalClassName, array $methods):
13281329
* @psalm-return MockObject&RealInstanceType
13291330
*
13301331
* @throws InvalidArgumentException
1331-
* @throws MockObject\Exception
1332+
* @throws MockObjectException
13321333
*
13331334
* @deprecated https://github.com/sebastianbergmann/phpunit/issues/5240
13341335
*/
@@ -1359,7 +1360,7 @@ protected function createTestProxy(string $originalClassName, array $constructor
13591360
* @psalm-return MockObject&RealInstanceType
13601361
*
13611362
* @throws InvalidArgumentException
1362-
* @throws MockObject\Exception
1363+
* @throws MockObjectException
13631364
*
13641365
* @deprecated https://github.com/sebastianbergmann/phpunit/issues/5241
13651366
*/
@@ -1389,7 +1390,7 @@ protected function getMockForAbstractClass(string $originalClassName, array $arg
13891390
/**
13901391
* Creates a mock object based on the given WSDL file.
13911392
*
1392-
* @throws MockObject\Exception
1393+
* @throws MockObjectException
13931394
*
13941395
* @deprecated https://github.com/sebastianbergmann/phpunit/issues/5242
13951396
*/
@@ -1446,7 +1447,7 @@ protected function getMockFromWsdl(string $wsdlFile, string $originalClassName =
14461447
* @psalm-param trait-string $traitName
14471448
*
14481449
* @throws InvalidArgumentException
1449-
* @throws MockObject\Exception
1450+
* @throws MockObjectException
14501451
*
14511452
* @deprecated https://github.com/sebastianbergmann/phpunit/issues/5243
14521453
*/
@@ -1475,7 +1476,7 @@ protected function getMockForTrait(string $traitName, array $arguments = [], str
14751476
*
14761477
* @psalm-param trait-string $traitName
14771478
*
1478-
* @throws MockObject\Exception
1479+
* @throws MockObjectException
14791480
*
14801481
* @deprecated https://github.com/sebastianbergmann/phpunit/issues/5244
14811482
*/
@@ -2371,7 +2372,7 @@ private function hasExpectationOnOutput(): bool
23712372
* @psalm-return Stub&RealInstanceType
23722373
*
23732374
* @throws InvalidArgumentException
2374-
* @throws MockObject\Exception
2375+
* @throws MockObjectException
23752376
* @throws NoPreviousThrowableException
23762377
*/
23772378
protected static function createStub(string $originalClassName): Stub
@@ -2396,7 +2397,7 @@ protected static function createStub(string $originalClassName): Stub
23962397
/**
23972398
* @psalm-param list<class-string> $interfaces
23982399
*
2399-
* @throws MockObject\Exception
2400+
* @throws MockObjectException
24002401
*/
24012402
protected static function createStubForIntersectionOfInterfaces(array $interfaces): Stub
24022403
{
@@ -2417,7 +2418,7 @@ protected static function createStubForIntersectionOfInterfaces(array $interface
24172418
* @psalm-return Stub&RealInstanceType
24182419
*
24192420
* @throws InvalidArgumentException
2420-
* @throws MockObject\Exception
2421+
* @throws MockObjectException
24212422
* @throws NoPreviousThrowableException
24222423
*/
24232424
final protected static function createConfiguredStub(string $originalClassName, array $configuration): Stub

0 commit comments

Comments
 (0)