Skip to content

Commit

Permalink
Document that this method can be made private once #5476 has been imp…
Browse files Browse the repository at this point in the history
…lemented
  • Loading branch information
sebastianbergmann committed Aug 18, 2023
1 parent 4345338 commit ff23b85
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Framework/MockObject/Generator/Generator.php
Expand Up @@ -369,6 +369,10 @@ public function objectForTrait(string $traitName, string $traitClassName = '', b
* @throws ClassIsReadonlyException
* @throws ReflectionException
* @throws RuntimeException
*
* @todo This method is only public because it is used to test generated code in PHPT tests
*
* @see https://github.com/sebastianbergmann/phpunit/issues/5476
*/
public function generate(string $type, bool $mockObject, array $methods = null, string $mockClassName = '', bool $callOriginalClone = true, bool $callAutoload = true, bool $cloneArguments = true, bool $callOriginalMethods = false): MockClass
{
Expand Down

0 comments on commit ff23b85

Please sign in to comment.