Skip to content

Commit

Permalink
Closes #5310
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Feb 25, 2024
1 parent 14d10b4 commit c35fd72
Showing 1 changed file with 0 additions and 39 deletions.
39 changes: 0 additions & 39 deletions src/Framework/MockObject/MockBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
use function array_merge;
use function assert;
use function debug_backtrace;
use PHPUnit\Event\Facade as EventFacade;
use PHPUnit\Framework\InvalidArgumentException;
use PHPUnit\Framework\MockObject\Generator\ClassAlreadyExistsException;
use PHPUnit\Framework\MockObject\Generator\ClassIsEnumerationException;
Expand Down Expand Up @@ -230,44 +229,6 @@ public function enableOriginalClone(): self
return $this;
}

/**
* Disables the use of class autoloading while creating the mock object.
*
* @return $this
*
* @deprecated https://github.com/sebastianbergmann/phpunit/issues/5309
*/
public function disableAutoload(): self
{
EventFacade::emitter()->testTriggeredPhpunitDeprecation(
$this->testCase->valueObjectForEvents(),
'MockBuilder::disableAutoload() is deprecated and will be removed in PHPUnit 12 without replacement.',
);

$this->autoload = false;

return $this;
}

/**
* Enables the use of class autoloading while creating the mock object.
*
* @return $this
*
* @deprecated https://github.com/sebastianbergmann/phpunit/issues/5309
*/
public function enableAutoload(): self
{
EventFacade::emitter()->testTriggeredPhpunitDeprecation(
$this->testCase->valueObjectForEvents(),
'MockBuilder::enableAutoload() is deprecated and will be removed in PHPUnit 12 without replacement.',
);

$this->autoload = true;

return $this;
}

/**
* @return $this
*/
Expand Down

0 comments on commit c35fd72

Please sign in to comment.