diff --git a/src/Framework/MockObject/MockBuilder.php b/src/Framework/MockObject/MockBuilder.php index f7ff8ad6e2e..451f27512a4 100644 --- a/src/Framework/MockObject/MockBuilder.php +++ b/src/Framework/MockObject/MockBuilder.php @@ -358,66 +358,6 @@ public function enableArgumentCloning(): self return $this; } - /** - * Enables the invocation of the original methods. - * - * @return $this - * - * @deprecated https://github.com/sebastianbergmann/phpunit/issues/5307 - */ - public function enableProxyingToOriginalMethods(): self - { - if (!$this->calledFromTestCase()) { - EventFacade::emitter()->testTriggeredPhpunitDeprecation( - $this->testCase->valueObjectForEvents(), - 'MockBuilder::enableProxyingToOriginalMethods() is deprecated and will be removed in PHPUnit 12 without replacement.', - ); - } - - $this->callOriginalMethods = true; - - return $this; - } - - /** - * Disables the invocation of the original methods. - * - * @return $this - * - * @deprecated https://github.com/sebastianbergmann/phpunit/issues/5307 - */ - public function disableProxyingToOriginalMethods(): self - { - EventFacade::emitter()->testTriggeredPhpunitDeprecation( - $this->testCase->valueObjectForEvents(), - 'MockBuilder::disableProxyingToOriginalMethods() is deprecated and will be removed in PHPUnit 12 without replacement.', - ); - - $this->callOriginalMethods = false; - $this->proxyTarget = null; - - return $this; - } - - /** - * Sets the proxy target. - * - * @return $this - * - * @deprecated https://github.com/sebastianbergmann/phpunit/issues/5307 - */ - public function setProxyTarget(object $object): self - { - EventFacade::emitter()->testTriggeredPhpunitDeprecation( - $this->testCase->valueObjectForEvents(), - 'MockBuilder::setProxyTarget() is deprecated and will be removed in PHPUnit 12 without replacement.', - ); - - $this->proxyTarget = $object; - - return $this; - } - /** * @return $this *