Skip to content

[CLEANUP] Simplify tests that use getArrayRepresenation() - #1476

Merged
oliverklee merged 1 commit into
mainfrom
cleanup/reformat-array-rep-tests
Jan 23, 2026
Merged

[CLEANUP] Simplify tests that use getArrayRepresenation()#1476
oliverklee merged 1 commit into
mainfrom
cleanup/reformat-array-rep-tests

Conversation

@oliverklee

Copy link
Copy Markdown
Collaborator

We don't need to check for arrayKeyExists as PHPUnit will warn anyway if the code tries to access an array element that does not exist.

We don't need to check for `arrayKeyExists` as PHPUnit will
warn anyway if the code tries to access an array element that
does not exist.
@oliverklee
oliverklee requested a review from JakeQZ January 23, 2026 17:33
@oliverklee oliverklee self-assigned this Jan 23, 2026
@oliverklee oliverklee added cleanup testing PRs/issues adding additional tests only, or primarily testing-focused labels Jan 23, 2026
@coveralls

Copy link
Copy Markdown

Coverage Status

coverage: 70.819%. remained the same
when pulling c624d53 on cleanup/reformat-array-rep-tests
into 7983af6 on main.

@JakeQZ JakeQZ left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Yes, it will catch the PHP notice/warning or Error, though IIRC the test failure will be an 'error' rather than a 'failure', not that that matters.

@oliverklee
oliverklee merged commit 68670ab into main Jan 23, 2026
24 checks passed
@oliverklee
oliverklee deleted the cleanup/reformat-array-rep-tests branch January 23, 2026 18:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cleanup testing PRs/issues adding additional tests only, or primarily testing-focused

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants