Skip to content

Add StringStream#85

Merged
vjik merged 9 commits intomasterfrom
stream
Feb 5, 2026
Merged

Add StringStream#85
vjik merged 9 commits intomasterfrom
stream

Conversation

@vjik
Copy link
Member

@vjik vjik commented Feb 3, 2026

Q A
Is bugfix?
New feature? ✔️
Breaks BC?

@codecov
Copy link

codecov bot commented Feb 3, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (63fbdc4) to head (1b0401e).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff             @@
##              master       #85   +/-   ##
===========================================
  Coverage     100.00%   100.00%           
- Complexity       100       140   +40     
===========================================
  Files              8         9    +1     
  Lines            231       323   +92     
===========================================
+ Hits             231       323   +92     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@vjik vjik requested a review from a team February 3, 2026 08:14
@vjik vjik added the status:code review The pull request needs review. label Feb 3, 2026
@vjik vjik changed the title Add StreamMock Add StringStream Feb 3, 2026
@samdark samdark requested a review from Copilot February 5, 2026 09:02
Copy link

Copilot AI left a comment

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 adds a new StringStream class, a test-specific implementation of PSR-7's StreamInterface that allows creating stream instances with configurable behavior for testing HTTP message handling.

Changes:

  • Added StringStream class with full PSR-7 StreamInterface implementation
  • Added comprehensive test suite with 29 test cases covering various scenarios
  • Added documentation with usage examples
  • Added psr/http-message dependency to composer.json
  • Updated changelog

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 10 comments.

Show a summary per file
File Description
src/HttpMessage/StringStream.php New PSR-7 StreamInterface implementation with configurable behavior for testing
tests/HttpMessage/StringStreamTest.php Comprehensive test suite covering stream operations, error conditions, and edge cases
docs/guide/en/README.md Documentation with usage examples and API reference
composer.json Added psr/http-message dependency (^1.1 || ^2.0)
CHANGELOG.md Added entry for StringStream feature

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

vjik and others added 5 commits February 5, 2026 12:54
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@vjik vjik requested a review from samdark February 5, 2026 10:13
@vjik vjik merged commit a021af8 into master Feb 5, 2026
32 checks passed
@vjik vjik deleted the stream branch February 5, 2026 16:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status:code review The pull request needs review.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants