Problem/Motivation
The Drupal\Component\Gettext component doesn't appear to have much test coverage (PHPUnit or otherwise).

Proposed resolution
Add some PHPUnit tests!
Remaining tasks
User interface changes
API changes
| Comment | File | Size | Author |
|---|
Issue fork drupal-2472701
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #1
jhedstromHere's a start for
PoItem.Comment #2
jhedstromThis adds additional coverage for
PoHeader.Comment #12
kristen polNeeds reroll for 9.1.x.
Comment #13
hardik_patel_12 commentedRe-rolled against 9.1.x. Kindly review a patch.
Comment #14
hardik_patel_12 commentedComment #16
vsujeetkumar commentedFixed test, Please review.
Comment #18
vsujeetkumar commentedComment #19
kristen polComment #20
kristen polThanks for the patch. I don't understand the code well enough to review it but, if it gets updated later, I noticed a couple nitpicks that could be addressed at that point.
Extra empty line.
Should this have an empty line above it?
Comment #26
pooja saraah commentedAddressed #20
Attached patch against Drupal 10.1.x
Comment #27
narendra.rajwar27Fixing custom commands failure.
Comment #31
hardik_patel_12 commentedComment #32
smustgrave commentedAll new functions or parameters should be typehinted with returns
Comment #33
hardik_patel_12 commentedComment #34
smustgrave commentedFeedback appears to be addressed and I didn't see any other instances of coverage for this.
Comment #35
quietone commentedI'm adding a reminder that evidence of a code review is expected when setting an issue to RTBC. For this issue, all I see is comment #32 which mentions return types. I would expect to see some comment about the test coverage and the the supplied test cases are sufficient.
Setting to NW for the comments in the MR.