[PR #125] [CLOSED] Use createMock instead of deprecated getMock #178

Open
opened 2026-01-23 11:33:09 +01:00 by admin · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/doctrine/DoctrineCacheBundle/pull/125
Author: @DavidPrevot
Created: 11/28/2017
Status: Closed

Base: masterHead: phpunit6


📝 Commits (1)

  • 0bc4d8d Use createMock instead of deprecated getMock

📊 Changes

2 files changed (+3 additions, -3 deletions)

View changed files

📝 Tests/Functional/Command/CommandTestCase.php (+2 -2)
📝 composer.json (+1 -1)

📄 Description

getMock has been deprecated since PHPUnit 5.4, and removed in PHPUnit 6.
This drops support for PHPUnit 4, but that version is not supported
upstream anymore since February 3, 2017.

This may be taken into consideration in order to help migrate to recent
PHPUnit with https://github.com/doctrine/DoctrineCacheBundle/pull/124.

Bug-Debian: https://bugs.debian.org/882898


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/doctrine/DoctrineCacheBundle/pull/125 **Author:** [@DavidPrevot](https://github.com/DavidPrevot) **Created:** 11/28/2017 **Status:** ❌ Closed **Base:** `master` ← **Head:** `phpunit6` --- ### 📝 Commits (1) - [`0bc4d8d`](https://github.com/doctrine/DoctrineCacheBundle/commit/0bc4d8d83fb6fd98500801131e4c6d639cbf5438) Use createMock instead of deprecated getMock ### 📊 Changes **2 files changed** (+3 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `Tests/Functional/Command/CommandTestCase.php` (+2 -2) 📝 `composer.json` (+1 -1) </details> ### 📄 Description getMock has been deprecated since PHPUnit 5.4, and removed in PHPUnit 6. This drops support for PHPUnit 4, but that version is not supported upstream anymore since February 3, 2017. This may be taken into consideration in order to help migrate to recent PHPUnit with <https://github.com/doctrine/DoctrineCacheBundle/pull/124>. Bug-Debian: https://bugs.debian.org/882898 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
admin added the pull-request label 2026-01-23 11:33:09 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/DoctrineCacheBundle#178