Skip to content

Conversation

jrfnl
Copy link
Member

@jrfnl jrfnl commented Oct 6, 2025

Description

BashUnit 0.25.0 improves the error reporting from the test fixture methods, which exposes a flaw in the phpcbf_test.sh::tear_down() method.

Should be fixed now.

Ref:

Suggested changelog entry

N/A (test only change)

BashUnit 0.25.0 improves the error reporting from the test fixture methods, which exposes a flaw in the `phpcbf_test.sh::tear_down()` method. Should be fixed now. Ref: * https://github.com/TypedDevs/bashunit/releases/tag/0.25.0 * TypedDevs/bashunit 489 * TypedDevs/bashunit 491
@jrfnl jrfnl added this to the 3.13.5 milestone Oct 6, 2025
@jrfnl jrfnl merged commit 6abb483 into 3.x Oct 6, 2025
80 checks passed
@jrfnl jrfnl deleted the feature/endtoendtests-fix-fixture-methods branch October 6, 2025 11:33

function tear_down() {
rm -r tests/EndToEnd/Fixtures/*.fixed
rm -rf tests/EndToEnd/Fixtures/*.fixed
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't need -r here.

Suggested change
rm -rf tests/EndToEnd/Fixtures/*.fixed
rm -f tests/EndToEnd/Fixtures/*.fixed
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@fredden Yeah, I kind of had a feeling it wasn't needed, but for now just wanted to fix the E2E tests. Happy to receive any PRs which improve/expand them though ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

2 participants