Skip to content

[TASK] Test LineName::getArrayRepresentation()#1582

Merged
JakeQZ merged 3 commits into
mainfrom
task/array-rep/line-name
May 16, 2026
Merged

[TASK] Test LineName::getArrayRepresentation()#1582
JakeQZ merged 3 commits into
mainfrom
task/array-rep/line-name

Conversation

@oliverklee
Copy link
Copy Markdown
Collaborator

The tests are basically the same as those for the parent class ValueList. The main difference is that the default separator now is a space, not a comma.

Part of #1440.

@oliverklee oliverklee requested a review from JakeQZ May 3, 2026 09:41
@oliverklee oliverklee self-assigned this May 3, 2026
@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 May 3, 2026
@coveralls
Copy link
Copy Markdown

coveralls commented May 3, 2026

Coverage Status

coverage: 73.3% (-0.02%) from 73.324% — task/array-rep/line-name into main

Copy link
Copy Markdown
Collaborator

@JakeQZ JakeQZ left a comment

Choose a reason for hiding this comment

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

I've never used line names (aka named grid lines).

It seems that they are user-defined identifiers (i.e. strings), and that the LineName constructor should actually only allow strings in the $components parameter, not Values (for another PR).

In the meantime, we should be consistent with what the class is representing: a non-empty list of user-defined string identifiers, which are whitespace-separated in the rendered CSS.

Comment thread tests/Unit/Value/LineNameTest.php Outdated
Comment thread tests/Unit/Value/LineNameTest.php Outdated
@oliverklee oliverklee force-pushed the task/array-rep/line-name branch from 560fb8c to d97e895 Compare May 13, 2026 15:52
@oliverklee
Copy link
Copy Markdown
Collaborator Author

I've never used line names (aka named grid lines).

I've added this to the Class PHPDoc in #1588.

It seems that they are user-defined identifiers (i.e. strings), and that the LineName constructor should actually only allow strings in the $components parameter, not Values (for another PR).

I've entered #1589 for this.

@oliverklee oliverklee force-pushed the task/array-rep/line-name branch from d97e895 to f46a701 Compare May 16, 2026 11:04
@oliverklee oliverklee requested a review from JakeQZ May 16, 2026 11:11
Copy link
Copy Markdown
Collaborator

@JakeQZ JakeQZ left a comment

Choose a reason for hiding this comment

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

There's a grammar mistake in a method name - otherwise looks good.

Comment thread tests/Unit/Value/LineNameTest.php Outdated
@oliverklee oliverklee force-pushed the task/array-rep/line-name branch from 9020eb7 to 589d9ea Compare May 16, 2026 15:24
@oliverklee oliverklee requested a review from JakeQZ May 16, 2026 15:26
oliverklee and others added 3 commits May 16, 2026 17:35
The tests are basically the same as those for the parent class
`ValueList`. The main difference is that the default separator
now is a space, not a comma.

Part of #1440.
Co-authored-by: JakeQZ <jake.github@qzdesign.co.uk>
@oliverklee oliverklee force-pushed the task/array-rep/line-name branch from 9659637 to 2b61dd9 Compare May 16, 2026 15:36
@JakeQZ JakeQZ merged commit f3635b0 into main May 16, 2026
24 checks passed
@JakeQZ JakeQZ deleted the task/array-rep/line-name branch May 16, 2026 16:18
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.

3 participants