kuzzleio / sdk-php

Official php SDK for Kuzzle
http://docs.kuzzle.io/sdk-reference
Apache License 2.0
6 stars 1 forks source link

[KZL-378] Document controller #99

Closed alexandrebouthinon closed 6 years ago

alexandrebouthinon commented 6 years ago

What does this PR do ?

Add refactored Document Controller with his unit tests

How should this be manually tested?

Run:

$ php ./vendor/bin/phpunit
$ php ./vendor/bin/phpcs -p -n --standard=PSR2 src

Depends on #98

codecov-io commented 6 years ago

Codecov Report

Merging #99 into 4.x will increase coverage by 7.21%. The diff coverage is 99.18%.

Impacted file tree graph

@@            Coverage Diff             @@
##              4.x      #99      +/-   ##
==========================================
+ Coverage   89.31%   96.52%   +7.21%     
==========================================
  Files          19       19              
  Lines        1460     1583     +123     
==========================================
+ Hits         1304     1528     +224     
+ Misses        156       55     -101
Impacted Files Coverage Δ
src/Kuzzle.php 88.78% <100%> (+0.05%) :arrow_up:
src/Util/SearchResult.php 100% <100%> (+64.4%) :arrow_up:
src/Document.php 99.18% <99.17%> (+73.05%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 9135c9c...a1494c7. Read the comment docs.