diff --git a/.psalm/baseline.xml b/.psalm/baseline.xml index 9bee7d867d2..0c83cc8efcf 100644 --- a/.psalm/baseline.xml +++ b/.psalm/baseline.xml @@ -1,5 +1,5 @@ - + notify @@ -269,6 +269,11 @@ $originalClassName expectedException]]> + + getMockBuilder + getMockBuilder + getMockBuilder + $mockObject diff --git a/.psalm/static-analysis-baseline.xml b/.psalm/static-analysis-baseline.xml new file mode 100644 index 00000000000..ce155737244 --- /dev/null +++ b/.psalm/static-analysis-baseline.xml @@ -0,0 +1,10 @@ + + + + + createPartialMock + createTestProxy + getMockBuilder + + + diff --git a/.psalm/static-analysis.xml b/.psalm/static-analysis.xml index 3ebe7132426..5867c00e49b 100644 --- a/.psalm/static-analysis.xml +++ b/.psalm/static-analysis.xml @@ -4,6 +4,7 @@ xmlns="https://getpsalm.org/schema/config" xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd" resolveFromConfigFile="false" + errorBaseline=".psalm/static-analysis-baseline.xml" > diff --git a/ChangeLog-10.1.md b/ChangeLog-10.1.md index 07e0baca1c3..4fb1d8417bb 100644 --- a/ChangeLog-10.1.md +++ b/ChangeLog-10.1.md @@ -17,5 +17,6 @@ All notable changes of the PHPUnit 10.1 release series are documented in this fi * [#5242](https://github.com/sebastianbergmann/phpunit/issues/5242): Deprecate `TestCase::getMockFromWsdl()` (this method only has a `@deprecated` annotation for now; using this method will trigger a deprecation warning in PHPUnit 11; this method will be removed in PHPUnit 12) * [#5243](https://github.com/sebastianbergmann/phpunit/issues/5243): Deprecate `TestCase::getMockForTrait()` (this method only has a `@deprecated` annotation for now; using this method will trigger a deprecation warning in PHPUnit 11; this method will be removed in PHPUnit 12) * [#5244](https://github.com/sebastianbergmann/phpunit/issues/5244): Deprecate `TestCase::getObjectForTrait()` (this method only has a `@deprecated` annotation for now; using this method will trigger a deprecation warning in PHPUnit 11; this method will be removed in PHPUnit 12) +* [#5252](https://github.com/sebastianbergmann/phpunit/issues/5252): Deprecate `TestCase::getMockBuilder()` (this method only has a `@deprecated` annotation for now; using this method will trigger a deprecation warning in PHPUnit 11; this method will be removed in PHPUnit 12) [10.1.0]: https://github.com/sebastianbergmann/phpunit/compare/10.0...main diff --git a/src/Framework/TestCase.php b/src/Framework/TestCase.php index 4c7139bcdee..99da6a5496f 100644 --- a/src/Framework/TestCase.php +++ b/src/Framework/TestCase.php @@ -477,6 +477,8 @@ final public function run(): void * @psalm-param class-string $className * * @psalm-return MockBuilder + * + * @deprecated https://github.com/sebastianbergmann/phpunit/issues/5252 */ final public function getMockBuilder(string $className): MockBuilder {