phpunit icon indicating copy to clipboard operation
phpunit copied to clipboard

#4204: Show actual data in failed description for assertIsEmpty

Open pwsdotru opened this issue 5 years ago • 5 comments

For issue https://github.com/sebastianbergmann/phpunit/issues/4204

pwsdotru avatar May 05 '20 18:05 pwsdotru

Codecov Report

Merging #4209 into master will increase coverage by 0.00%. The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##             master    #4209   +/-   ##
=========================================
  Coverage     85.18%   85.18%           
  Complexity     4512     4512           
=========================================
  Files           243      243           
  Lines         12367    12368    +1     
=========================================
+ Hits          10535    10536    +1     
  Misses         1832     1832           
Impacted Files Coverage Δ Complexity Δ
src/Framework/Constraint/Cardinality/IsEmpty.php 100.00% <100.00%> (ø) 7.00 <0.00> (ø)

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 43d0cca...20cb78f. Read the comment docs.

codecov[bot] avatar May 05 '20 18:05 codecov[bot]

~~Thank you for your contribution. I appreciate the time you invested in preparing this pull request. However, I have decided not to merge it as I believe that #4204 should be addressed in the TeamCity logger instead.~~

sebastianbergmann avatar Sep 05 '20 05:09 sebastianbergmann

It might actually make sense to show the contents of an array when it is not empty but was used with assertIsEmpty(). I got confused there for a moment because I started looking at this from the TeamCity angle of #4204.

sebastianbergmann avatar Sep 05 '20 05:09 sebastianbergmann

This branch has conflicts that must be resolved.

sebastianbergmann avatar Sep 05 '20 05:09 sebastianbergmann

@sebastianbergmann Thank you for your review and comments. I fixed conflicts.

pwsdotru avatar Sep 09 '20 12:09 pwsdotru

Thank you for your contribution. I appreciate the time you invested in preparing this pull request. However, I have decided not to merge it.

sebastianbergmann avatar Jan 13 '24 13:01 sebastianbergmann