[PR #94] Updated to support both PHPUnit 5 and PHPUnit 6. #115

Open
opened 2026-01-24 11:40:51 +01:00 by admin · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/php/pftt2/pull/94
Author: @lavturo
Created: 2/5/2020
Status: 🔄 Open

Base: masterHead: fix_issue5


📝 Commits (1)

  • 6a7b40d Updated to support both PHPUnit 5 and PHPUnit 6.

📊 Changes

8 files changed (+270 additions, -120 deletions)

View changed files

📝 .gitignore (+1 -1)
📝 cache/helloworld/tests/HelloWorldTest.php (+1 -1)
📝 src/com/mostc/pftt/host/Host.java (+4 -2)
📝 src/com/mostc/pftt/main/PfttAuto.java (+1 -1)
📝 src/com/mostc/pftt/main/PfttMain.java (+9 -7)
📝 src/com/mostc/pftt/model/app/PhpUnitDist.java (+2 -3)
📝 src/com/mostc/pftt/model/app/PhpUnitTemplate.groovy (+191 -79)
📝 src/com/mostc/pftt/util/HostEnvUtil.java (+61 -26)

📄 Description

@dalehhirt @cmb69 Please check the changes made.

The major difference between PHPUnit 5 and PHPUnit 6 is how it reads classes/namespace.

Due to that, I had to update the HelloWorldTest. The code assumes you will use PHPUnit 6 as default unless it is for Joomla, then it uses PHPUnit 5.


🔄 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/php/pftt2/pull/94 **Author:** [@lavturo](https://github.com/lavturo) **Created:** 2/5/2020 **Status:** 🔄 Open **Base:** `master` ← **Head:** `fix_issue5` --- ### 📝 Commits (1) - [`6a7b40d`](https://github.com/php/pftt2/commit/6a7b40dc4947d10764fcecb6ea6c9ee263f00663) Updated to support both PHPUnit 5 and PHPUnit 6. ### 📊 Changes **8 files changed** (+270 additions, -120 deletions) <details> <summary>View changed files</summary> 📝 `.gitignore` (+1 -1) 📝 `cache/helloworld/tests/HelloWorldTest.php` (+1 -1) 📝 `src/com/mostc/pftt/host/Host.java` (+4 -2) 📝 `src/com/mostc/pftt/main/PfttAuto.java` (+1 -1) 📝 `src/com/mostc/pftt/main/PfttMain.java` (+9 -7) 📝 `src/com/mostc/pftt/model/app/PhpUnitDist.java` (+2 -3) 📝 `src/com/mostc/pftt/model/app/PhpUnitTemplate.groovy` (+191 -79) 📝 `src/com/mostc/pftt/util/HostEnvUtil.java` (+61 -26) </details> ### 📄 Description @dalehhirt @cmb69 Please check the changes made. The major difference between PHPUnit 5 and PHPUnit 6 is how it reads classes/namespace. Due to that, I had to update the HelloWorldTest. The code assumes you will use PHPUnit 6 as default unless it is for Joomla, then it uses PHPUnit 5. --- <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-24 11:40:51 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: php/pftt2#115