phanxipang / fansipan

A simple package that allows you to write your API integrations or SDKs in a elegant way.
https://phanxipang.github.io/fansipan
MIT License
83 stars 2 forks source link

Mocking/Faking response #3

Closed jenky closed 1 year ago

jenky commented 1 year ago

Description

Create MockClient and ScopingMockClient for uri matching test

close #1

codecov[bot] commented 1 year ago

Codecov Report

Merging #3 (efd6559) into main (b79b503) will increase coverage by 0.58%. The diff coverage is 73.77%.

:exclamation: Current head efd6559 differs from pull request most recent head a94063f. Consider uploading reports for the commit a94063f to get more accurate results

@@             Coverage Diff              @@
##               main       #3      +/-   ##
============================================
+ Coverage     70.58%   71.16%   +0.58%     
- Complexity      297      329      +32     
============================================
  Files            34       34              
  Lines           714      770      +56     
============================================
+ Hits            504      548      +44     
- Misses          210      222      +12     
Impacted Files Coverage Δ
src/Traits/HasClient.php 100.00% <ø> (+40.00%) :arrow_up:
src/Traits/HasMiddleware.php 75.00% <ø> (ø)
src/Util.php 78.08% <72.41%> (-21.92%) :arrow_down:
src/Connector.php 94.11% <100.00%> (+0.78%) :arrow_up:
src/PendingRequest.php 100.00% <100.00%> (ø)

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more