Skip to content

[TEST] Use dedicated assertCount for test assertions#29

Open
beatrycze-volk wants to merge 1 commit into
slub:masterfrom
beatrycze-volk:test-count
Open

[TEST] Use dedicated assertCount for test assertions#29
beatrycze-volk wants to merge 1 commit into
slub:masterfrom
beatrycze-volk:test-count

Conversation

@beatrycze-volk

Copy link
Copy Markdown
Collaborator

Switches from assertEquals(X, count($var)) to assertCount(X, $var) for checking collection sizes across various test files. This enhances readability and utilizes the more semantically correct PHPUnit assertion.

Switches from `assertEquals(X, count($var))` to `assertCount(X, $var)`
for checking collection sizes across various test files. This enhances
readability and utilizes the more semantically correct PHPUnit assertion.
@beatrycze-volk beatrycze-volk added this to the PHP MODS Reader 0.5.0 milestone Jun 19, 2026
@beatrycze-volk beatrycze-volk self-assigned this Jun 19, 2026
@beatrycze-volk beatrycze-volk added the test Test coverage label Jun 19, 2026
@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 0 complexity · 0 duplication

Metric Results
Complexity 0
Duplication 0

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

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

Labels

test Test coverage

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant