Skip to content

Commit

Permalink
Merge branch '9.6' into 10.5
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Dec 27, 2023
2 parents 71685c3 + 39b6123 commit 2b15cb6
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions src/Framework/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@
use PHPUnit\Framework\Constraint\ExceptionCode;
use PHPUnit\Framework\Constraint\ExceptionMessageIsOrContains;
use PHPUnit\Framework\Constraint\ExceptionMessageMatchesRegularExpression;
use PHPUnit\Framework\MockObject\Exception as MockObjectException;
use PHPUnit\Framework\MockObject\Generator\Generator as MockGenerator;
use PHPUnit\Framework\MockObject\MockBuilder;
use PHPUnit\Framework\MockObject\MockObject;
Expand Down Expand Up @@ -1220,7 +1221,7 @@ protected function setLocale(mixed ...$arguments): void
* @psalm-return MockObject&RealInstanceType
*
* @throws InvalidArgumentException
* @throws MockObject\Exception
* @throws MockObjectException
* @throws NoPreviousThrowableException
*/
protected function createMock(string $originalClassName): MockObject
Expand All @@ -1247,7 +1248,7 @@ protected function createMock(string $originalClassName): MockObject
/**
* @psalm-param list<class-string> $interfaces
*
* @throws MockObject\Exception
* @throws MockObjectException
*/
protected function createMockForIntersectionOfInterfaces(array $interfaces): MockObject
{
Expand All @@ -1272,7 +1273,7 @@ protected function createMockForIntersectionOfInterfaces(array $interfaces): Moc
* @psalm-return MockObject&RealInstanceType
*
* @throws InvalidArgumentException
* @throws MockObject\Exception
* @throws MockObjectException
* @throws NoPreviousThrowableException
*/
protected function createConfiguredMock(string $originalClassName, array $configuration): MockObject
Expand All @@ -1298,7 +1299,7 @@ protected function createConfiguredMock(string $originalClassName, array $config
* @psalm-return MockObject&RealInstanceType
*
* @throws InvalidArgumentException
* @throws MockObject\Exception
* @throws MockObjectException
*/
protected function createPartialMock(string $originalClassName, array $methods): MockObject
{
Expand Down Expand Up @@ -1328,7 +1329,7 @@ protected function createPartialMock(string $originalClassName, array $methods):
* @psalm-return MockObject&RealInstanceType
*
* @throws InvalidArgumentException
* @throws MockObject\Exception
* @throws MockObjectException
*
* @deprecated https://github.com/sebastianbergmann/phpunit/issues/5240
*/
Expand Down Expand Up @@ -1359,7 +1360,7 @@ protected function createTestProxy(string $originalClassName, array $constructor
* @psalm-return MockObject&RealInstanceType
*
* @throws InvalidArgumentException
* @throws MockObject\Exception
* @throws MockObjectException
*
* @deprecated https://github.com/sebastianbergmann/phpunit/issues/5241
*/
Expand Down Expand Up @@ -1389,7 +1390,7 @@ protected function getMockForAbstractClass(string $originalClassName, array $arg
/**
* Creates a mock object based on the given WSDL file.
*
* @throws MockObject\Exception
* @throws MockObjectException
*
* @deprecated https://github.com/sebastianbergmann/phpunit/issues/5242
*/
Expand Down Expand Up @@ -1446,7 +1447,7 @@ protected function getMockFromWsdl(string $wsdlFile, string $originalClassName =
* @psalm-param trait-string $traitName
*
* @throws InvalidArgumentException
* @throws MockObject\Exception
* @throws MockObjectException
*
* @deprecated https://github.com/sebastianbergmann/phpunit/issues/5243
*/
Expand Down Expand Up @@ -1475,7 +1476,7 @@ protected function getMockForTrait(string $traitName, array $arguments = [], str
*
* @psalm-param trait-string $traitName
*
* @throws MockObject\Exception
* @throws MockObjectException
*
* @deprecated https://github.com/sebastianbergmann/phpunit/issues/5244
*/
Expand Down Expand Up @@ -2371,7 +2372,7 @@ private function hasExpectationOnOutput(): bool
* @psalm-return Stub&RealInstanceType
*
* @throws InvalidArgumentException
* @throws MockObject\Exception
* @throws MockObjectException
* @throws NoPreviousThrowableException
*/
protected static function createStub(string $originalClassName): Stub
Expand All @@ -2396,7 +2397,7 @@ protected static function createStub(string $originalClassName): Stub
/**
* @psalm-param list<class-string> $interfaces
*
* @throws MockObject\Exception
* @throws MockObjectException
*/
protected static function createStubForIntersectionOfInterfaces(array $interfaces): Stub
{
Expand All @@ -2417,7 +2418,7 @@ protected static function createStubForIntersectionOfInterfaces(array $interface
* @psalm-return Stub&RealInstanceType
*
* @throws InvalidArgumentException
* @throws MockObject\Exception
* @throws MockObjectException
* @throws NoPreviousThrowableException
*/
final protected static function createConfiguredStub(string $originalClassName, array $configuration): Stub
Expand Down

0 comments on commit 2b15cb6

Please sign in to comment.