Skip to content

[TASK] Add tests for Color::getArrayRepresentation() - #1606

Merged
JakeQZ merged 1 commit into
mainfrom
task/array-rep/color
Jul 26, 2026
Merged

[TASK] Add tests for Color::getArrayRepresentation()#1606
JakeQZ merged 1 commit into
mainfrom
task/array-rep/color

Conversation

@oliverklee

Copy link
Copy Markdown
Collaborator

Part of #1440.

@oliverklee
oliverklee requested a review from JakeQZ July 26, 2026 08:29
@oliverklee oliverklee self-assigned this Jul 26, 2026
Copilot AI review requested due to automatic review settings July 26, 2026 08:29
@oliverklee oliverklee added testing PRs/issues adding additional tests only, or primarily testing-focused developer-specific Issues that only affect maintainers, contributors, and people submitting PRs labels Jul 26, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR advances the effort in #1440 to support array-based “debug/render” representations for unit tests by exercising Color::getArrayRepresentation() and enabling the inherited implementation to be used.

Changes:

  • Replace the previous “not implemented” exception behavior for Color::getArrayRepresentation() by removing the stub override, allowing inherited array representation logic to run.
  • Add unit tests asserting Color::getArrayRepresentation() includes the short class name, function name, and component representations.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
tests/Unit/Value/ColorTest.php Adds assertions for Color::getArrayRepresentation() output structure (class, name, components).
src/Value/Color.php Removes the exception-throwing stub so Color uses the inherited array representation implementation.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread tests/Unit/Value/ColorTest.php Outdated
@coveralls

coveralls commented Jul 26, 2026

Copy link
Copy Markdown

Coverage Status

coverage: 72.579% (-0.03%) from 72.604% — task/array-rep/color into main

Copilot AI review requested due to automatic review settings July 26, 2026 08:35
@oliverklee
oliverklee force-pushed the task/array-rep/color branch from f59ce4f to c9a1556 Compare July 26, 2026 08:35

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.

@JakeQZ
JakeQZ merged commit 8b3dd42 into main Jul 26, 2026
25 checks passed
@JakeQZ
JakeQZ deleted the task/array-rep/color branch July 26, 2026 22:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

developer-specific Issues that only affect maintainers, contributors, and people submitting PRs testing PRs/issues adding additional tests only, or primarily testing-focused

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants