Skip to content

Add utility helper classes and tests#41

Merged
f3l1x merged 7 commits intocontributte:masterfrom
ohmyfelix:feature/add-utility-helpers
Feb 21, 2026
Merged

Add utility helper classes and tests#41
f3l1x merged 7 commits intocontributte:masterfrom
ohmyfelix:feature/add-utility-helpers

Conversation

@ohmyfelix
Copy link
Copy Markdown
Contributor

Summary

  • add six new utility classes: Caster, Emptiness, System, TextString, UserAgents, and Uuid
  • add phpt coverage for all new helpers, including casting exceptions, timer lifecycle, user-agent rotation/random behavior, and UUID v4 validation
  • document the new helpers in .docs/README.md so they are discoverable in package docs

Testing

  • make qa
  • vendor/bin/tester -s -p php --colors 1 tests/Cases/Caster.phpt tests/Cases/Emptiness.phpt tests/Cases/System.phpt tests/Cases/TextString.phpt tests/Cases/UserAgents.phpt tests/Cases/Uuid.phpt
  • make tests (fails in this environment because GD extension is not loaded in existing tests/Cases/File.phpt)

@codecov
Copy link
Copy Markdown

codecov Bot commented Feb 20, 2026

Codecov Report

❌ Patch coverage is 97.87234% with 2 lines in your changes missing coverage. Please review.
⚠️ Please upload report for BASE (master@bde9825). Learn more about missing BASE report.

Files with missing lines Patch % Lines
src/Caster.php 96.77% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff            @@
##             master      #41   +/-   ##
=========================================
  Coverage          ?   88.93%           
=========================================
  Files             ?       26           
  Lines             ?      497           
  Branches          ?        0           
=========================================
  Hits              ?      442           
  Misses            ?       55           
  Partials          ?        0           

☔ 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.

@ohmyfelix ohmyfelix force-pushed the feature/add-utility-helpers branch from 8d6d4b2 to dbbcb36 Compare February 21, 2026 13:02
@f3l1x f3l1x merged commit 16aa309 into contributte:master Feb 21, 2026
10 checks passed
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.

2 participants