Update docs with reference to PHPUnit mock classes

Open
#233 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
55/100
Issue type
Documentation
Clarity
Mostly clear
Activity status
Stale
Tech stack
php

Research direction

Search the documentation for references to PHPUnit_Framework_MockObject_MockObject and read the surrounding guidance. Update the reference to account for PHPUnit 11 and the \PHPUnit\Framework\MockObject\MockObject intersection usage described in the issue. Confirm the resulting documentation is accurate and consistent with the current PHPUnit terminology.

Written by the indexing model from the issue text.

Description

The advice referencing PHPUnit_Framework_MockObject_MockObject doesn't seem to be correct as of PHPUnit 11, but \PHPUnit\Framework\MockObject\MockObject seems to work just as well as an intersection.

Maybe its time to update the docs?

Dominant language
PHP
Stars
544
Forks
58
Avg merge
2d 1h
Merged PRs (30d)
5

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from phpstan/phpstan-phpunit

All issues in phpstan/phpstan-phpunit

Similar issues

More PHP issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.