Tests
| Q | A |
|---|---|
| Is bugfix? | ✔️/❌ |
| New feature? | ✔️/❌ |
| Breaks BC? | ✔️/❌ |
| Fixed issues |
https://github.com/yiisoft/yii-debug/pull/248
PR Summary
-
Integration of Http Message Library The necessary package
httpsoft/http-messageversion^1.1was added into the project for HTTP message handling functionalities, i.e. to manage HTTP requests, responses, uploaded files etc which aids in better overall communication process in the application. -
Code Cleanup in
DebugApiProvider.phpAn unnecessary importPsr\Container\ContainerInterfacehas been removed, which resulted in cleaner and easy to understand code inDebugApiProvider.php. -
Improvement of Function Argument in
DebugApiProvider.phpThe argument type inRouteCollectorInterfaceclosure was updated inDebugApiProvider.phpfor increased code consistency and reliability. -
Optimization in
CollectorRepository.phpAn enhancement was made by changing the(string)$namecode inCollectorRepository.phpto improve code efficiency. -
Added New Files for Testing & Stubbing New test files have been added
DebugHeadersTest.php,ResponseDataWrapperTest.php,DebugApiProviderTest.php,CollectorRepositoryTest.php. These files help in ensuring the individual functionalities work as expected and improves the overall stability of the application. Additionally, a new fileStubCollector.phpwas added which helps in providing a temporary substitute for yet-to-develop or sensitive functionalities during testing phase.
Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 9.37%. Comparing base (
e4a6c26) to head (57195e0). Report is 3 commits behind head on master.
:exclamation: Current head 57195e0 differs from pull request most recent head 85291b4
Please upload reports for the commit 85291b4 to get more accurate results.
Additional details and impacted files
@@ Coverage Diff @@
## master #137 +/- ##
===========================================
+ Coverage 3.01% 9.37% +6.35%
Complexity 255 255
===========================================
Files 22 22
Lines 1325 1302 -23
===========================================
+ Hits 40 122 +82
+ Misses 1285 1180 -105
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.