php-school / cli-menu

🖥 Build beautiful PHP CLI menus. Simple yet Powerful. Expressive DSL.
http://www.phpschool.io
MIT License
1.94k stars 106 forks source link

Tests for CheckboxStyle & RadioStyle #213

Closed AydinHassan closed 4 years ago

AydinHassan commented 4 years ago

I also refactored hasChangedFromDefaults. I prefer this way where we don't need an extra property and to litter each setter with a flag set.

codecov-io commented 4 years ago

Codecov Report

Merging #213 into master will increase coverage by 0.47%. The diff coverage is 100%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master     #213      +/-   ##
============================================
+ Coverage     93.04%   93.52%   +0.47%     
  Complexity      558      558              
============================================
  Files            30       30              
  Lines          1667     1667              
============================================
+ Hits           1551     1559       +8     
+ Misses          116      108       -8
Impacted Files Coverage Δ Complexity Δ
src/Style/RadioStyle.php 100% <100%> (+11.76%) 12 <0> (ø) :arrow_down:
src/Style/CheckboxStyle.php 100% <100%> (+11.76%) 12 <0> (ø) :arrow_down:

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 95df7b9...8e9c251. Read the comment docs.