Skip to content

test: check that stream is a resource in testSendConnectionAborted - #299

Merged
phil-davis merged 1 commit into
sabre-io:masterfrom
phil-davis:testSendConnectionAborted-assertIsResource
Oct 22, 2026
Merged

phil-davis merged 1 commit into
sabre-io:masterfrom
phil-davis:testSendConnectionAborted-assertIsResource

Conversation

@phil-davis

Copy link
Copy Markdown
Contributor

If phpunit is run locally without having started a test server, then an error is reported from fread about stream being false.

This change makes the result a bit nicer. If the fopen does not succeed then the test fails early and reports a hopefully-useful message.

If phpunit is run locally without having started a test server, then
an error is reported from fread about stream being false.

This change makes the result a bit nicer. If the fopen does not succeed
then the test fails early and reports a hopefully-useful message.

Signed-off-by: Phillip Davis <phil@jankaritech.com>
@phil-davis
phil-davis merged commit 3a62b30 into sabre-io:master Oct 22, 2026
4 checks passed
@codecov

codecov Bot commented Oct 22, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.81%. Comparing base (d364b89) to head (4812fcb).
⚠️ Report is 5 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##             master     #299   +/-   ##
=========================================
  Coverage     94.81%   94.81%           
  Complexity      258      258           
=========================================
  Files            15       15           
  Lines           849      849           
=========================================
  Hits            805      805           
  Misses           44       44           

☔ View full report in Codecov by Harness.
📢 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant