Skip to content

Commit

Permalink
Closes #5312
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Feb 14, 2024
1 parent 0e5a9b6 commit 4b5b10c
Showing 1 changed file with 0 additions and 60 deletions.
60 changes: 0 additions & 60 deletions src/Framework/MockObject/MockBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -359,66 +359,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. No replacement is/will be provided.',
);
}

$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. No replacement is/will be provided.',
);

$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. No replacement is/will be provided.',
);

$this->proxyTarget = $object;

return $this;
}

/**
* @return $this
*
Expand Down

0 comments on commit 4b5b10c

Please sign in to comment.