Skip to content

Conversation

@derrabus
Copy link
Member

PHPUnit has deprecated partial mocking, so we should avoud calling getMockForAbstractClass() in our tests.

@derrabus derrabus force-pushed the improvement/phpunit-partial-mocks branch from 2c7607d to d2cbab2 Compare June 17, 2025 21:39
@github-actions

This comment was marked as resolved.

@github-actions github-actions bot added the Stale label Sep 16, 2025
@derrabus derrabus force-pushed the improvement/phpunit-partial-mocks branch 2 times, most recently from 6a20f49 to a308fec Compare September 16, 2025 06:49
@derrabus derrabus removed the Stale label Sep 16, 2025
@derrabus derrabus requested a review from greg0ire September 16, 2025 07:57
@derrabus derrabus force-pushed the improvement/phpunit-partial-mocks branch from a308fec to c2cdb52 Compare September 16, 2025 07:59
@derrabus derrabus added this to the 2.20.7 milestone Sep 16, 2025
SenseException
SenseException previously approved these changes Sep 16, 2025
@derrabus derrabus force-pushed the improvement/phpunit-partial-mocks branch from c2cdb52 to cb99964 Compare October 7, 2025 13:43
@derrabus derrabus merged commit 4274dac into doctrine:2.20.x Oct 7, 2025
71 checks passed
@derrabus derrabus deleted the improvement/phpunit-partial-mocks branch October 7, 2025 14:34
derrabus added a commit that referenced this pull request Oct 7, 2025
* 2.20.x:
  Remove calls to getMockForAbstractClass() (#12003)
  Upgrade to doctrine/coding-standard 14
  Bump doctrine/.github from 7.3.0 to 8.0.0
derrabus added a commit to derrabus/orm that referenced this pull request Oct 7, 2025
* 2.20.x:
  Remove calls to getMockForAbstractClass() (doctrine#12003)
derrabus added a commit to derrabus/orm that referenced this pull request Oct 7, 2025
* 2.20.x:
  Remove calls to getMockForAbstractClass() (doctrine#12003)
derrabus added a commit to derrabus/orm that referenced this pull request Oct 8, 2025
* 3.5.x:
  Fix missing import
  Remove calls to getMockForAbstractClass() (doctrine#12003)
  Upgrade to doctrine/coding-standard 14
  Bump doctrine/.github from 7.3.0 to 8.0.0
derrabus added a commit to derrabus/orm that referenced this pull request Oct 8, 2025
* 3.6.x:
  Fix missing import
  Remove calls to getMockForAbstractClass() (doctrine#12003)
  Add a CI job that fails on deprecations (doctrine#12188)
  use the empty string instead of null as an array offset (doctrine#12181)
  Upgrade to doctrine/coding-standard 14
  Bump doctrine/.github from 7.3.0 to 8.0.0
  do not call setAccessible() on PHP >= 8.1 (doctrine#12182)
  Fix docs on final entities (doctrine#12176)
  Remove Database and Model First chapters that said little of value.
  Switch to IgnoreDeprecations
  Fix php doc for getPropertyAccessors method (doctrine#12159)
  docs: consistent PostgreSQL's name case
  docs: generation strategies differences between DBAL 3 and 4
  Check extra condition to decide if a test was skipped
  Use PHPUnit 11 when possible
  Migrate away from annotations in tests
  Migrate away from assertStringNotMatchesFormat()
  Migrate to willReturn()
  Migrate away from getMockForAbstractClass()
  Fix `IN`/`NOT IN` expression handling and support enums when matching on to-many-collections
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants