Skip to content

Commit

Permalink
Closes #5312
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Feb 27, 2024
1 parent 536ed6f commit 4f5177d
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 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
*
Expand Down

0 comments on commit 4f5177d

Please sign in to comment.