diff --git a/.phive/phars.xml b/.phive/phars.xml index 53d31004866..88a0f10a4f5 100644 --- a/.phive/phars.xml +++ b/.phive/phars.xml @@ -1,7 +1,7 @@ - + diff --git a/src/Framework/TestCase.php b/src/Framework/TestCase.php index 821415c5294..ace47a3c66f 100644 --- a/src/Framework/TestCase.php +++ b/src/Framework/TestCase.php @@ -1219,8 +1219,8 @@ protected function setLocale(mixed ...$arguments): void * * @psalm-return MockObject&RealInstanceType * - * @throws \PHPUnit\Framework\MockObject\Exception * @throws InvalidArgumentException + * @throws MockObject\Exception * @throws NoPreviousThrowableException */ protected function createMock(string $originalClassName): MockObject @@ -1247,7 +1247,7 @@ protected function createMock(string $originalClassName): MockObject /** * @psalm-param list $interfaces * - * @throws \PHPUnit\Framework\MockObject\Exception + * @throws MockObject\Exception */ protected function createMockForIntersectionOfInterfaces(array $interfaces): MockObject { @@ -1271,8 +1271,8 @@ protected function createMockForIntersectionOfInterfaces(array $interfaces): Moc * * @psalm-return MockObject&RealInstanceType * - * @throws \PHPUnit\Framework\MockObject\Exception * @throws InvalidArgumentException + * @throws MockObject\Exception * @throws NoPreviousThrowableException */ protected function createConfiguredMock(string $originalClassName, array $configuration): MockObject @@ -1297,8 +1297,8 @@ protected function createConfiguredMock(string $originalClassName, array $config * * @psalm-return MockObject&RealInstanceType * - * @throws \PHPUnit\Framework\MockObject\Exception * @throws InvalidArgumentException + * @throws MockObject\Exception */ protected function createPartialMock(string $originalClassName, array $methods): MockObject { @@ -1327,8 +1327,8 @@ protected function createPartialMock(string $originalClassName, array $methods): * * @psalm-return MockObject&RealInstanceType * - * @throws \PHPUnit\Framework\MockObject\Exception * @throws InvalidArgumentException + * @throws MockObject\Exception * * @deprecated https://github.com/sebastianbergmann/phpunit/issues/5240 */ @@ -1358,8 +1358,8 @@ protected function createTestProxy(string $originalClassName, array $constructor * * @psalm-return MockObject&RealInstanceType * - * @throws \PHPUnit\Framework\MockObject\Exception * @throws InvalidArgumentException + * @throws MockObject\Exception * * @deprecated https://github.com/sebastianbergmann/phpunit/issues/5241 */ @@ -1389,7 +1389,7 @@ protected function getMockForAbstractClass(string $originalClassName, array $arg /** * Creates a mock object based on the given WSDL file. * - * @throws \PHPUnit\Framework\MockObject\Exception + * @throws MockObject\Exception * * @deprecated https://github.com/sebastianbergmann/phpunit/issues/5242 */ @@ -1445,8 +1445,8 @@ protected function getMockFromWsdl(string $wsdlFile, string $originalClassName = * * @psalm-param trait-string $traitName * - * @throws \PHPUnit\Framework\MockObject\Exception * @throws InvalidArgumentException + * @throws MockObject\Exception * * @deprecated https://github.com/sebastianbergmann/phpunit/issues/5243 */ @@ -1475,7 +1475,7 @@ protected function getMockForTrait(string $traitName, array $arguments = [], str * * @psalm-param trait-string $traitName * - * @throws \PHPUnit\Framework\MockObject\Exception + * @throws MockObject\Exception * * @deprecated https://github.com/sebastianbergmann/phpunit/issues/5244 */ @@ -2370,8 +2370,8 @@ private function hasExpectationOnOutput(): bool * * @psalm-return Stub&RealInstanceType * - * @throws \PHPUnit\Framework\MockObject\Exception * @throws InvalidArgumentException + * @throws MockObject\Exception * @throws NoPreviousThrowableException */ protected static function createStub(string $originalClassName): Stub @@ -2396,7 +2396,7 @@ protected static function createStub(string $originalClassName): Stub /** * @psalm-param list $interfaces * - * @throws \PHPUnit\Framework\MockObject\Exception + * @throws MockObject\Exception */ protected static function createStubForIntersectionOfInterfaces(array $interfaces): Stub { @@ -2416,8 +2416,8 @@ protected static function createStubForIntersectionOfInterfaces(array $interface * * @psalm-return Stub&RealInstanceType * - * @throws \PHPUnit\Framework\MockObject\Exception * @throws InvalidArgumentException + * @throws MockObject\Exception * @throws NoPreviousThrowableException */ final protected static function createConfiguredStub(string $originalClassName, array $configuration): Stub diff --git a/tests/unit/Framework/TestSizeTest.php b/tests/unit/Framework/TestSizeTest.php index fe89a854fae..acd2b9b6def 100644 --- a/tests/unit/Framework/TestSizeTest.php +++ b/tests/unit/Framework/TestSizeTest.php @@ -17,7 +17,7 @@ #[CoversClass(Known::class)] #[CoversClass(Large::class)] #[CoversClass(Medium::class)] -#[CoversClass(\PHPUnit\Framework\TestSize\Small::class)] +#[CoversClass(Small::class)] #[CoversClass(TestSize::class)] #[CoversClass(Unknown::class)] #[Small] diff --git a/tests/unit/Metadata/MetadataCollectionTest.php b/tests/unit/Metadata/MetadataCollectionTest.php index defcef79dce..5e0a3b7b3d0 100644 --- a/tests/unit/Metadata/MetadataCollectionTest.php +++ b/tests/unit/Metadata/MetadataCollectionTest.php @@ -25,7 +25,7 @@ #[UsesClass(Before::class)] #[UsesClass(BeforeClass::class)] #[UsesClass(Covers::class)] -#[UsesClass(\PHPUnit\Metadata\CoversClass::class)] +#[UsesClass(CoversClass::class)] #[UsesClass(CoversDefaultClass::class)] #[UsesClass(CoversFunction::class)] #[UsesClass(CoversNothing::class)] @@ -56,7 +56,7 @@ #[UsesClass(TestDox::class)] #[UsesClass(TestWith::class)] #[UsesClass(Uses::class)] -#[UsesClass(\PHPUnit\Metadata\UsesClass::class)] +#[UsesClass(UsesClass::class)] #[UsesClass(UsesDefaultClass::class)] #[UsesClass(UsesFunction::class)] #[Small] diff --git a/tests/unit/Metadata/MetadataTest.php b/tests/unit/Metadata/MetadataTest.php index 6b600bf2e7c..c866c9a29aa 100644 --- a/tests/unit/Metadata/MetadataTest.php +++ b/tests/unit/Metadata/MetadataTest.php @@ -22,7 +22,7 @@ #[CoversClass(Before::class)] #[CoversClass(BeforeClass::class)] #[CoversClass(Covers::class)] -#[CoversClass(\PHPUnit\Metadata\CoversClass::class)] +#[CoversClass(CoversClass::class)] #[CoversClass(CoversDefaultClass::class)] #[CoversClass(CoversFunction::class)] #[CoversClass(CoversNothing::class)] diff --git a/tools/php-cs-fixer b/tools/php-cs-fixer index c8dd2912ad4..9ad35530677 100755 Binary files a/tools/php-cs-fixer and b/tools/php-cs-fixer differ