Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplified assertion exception stack trace trimming. #22

Merged
merged 1 commit into from
Sep 20, 2016
Merged

Simplified assertion exception stack trace trimming. #22

merged 1 commit into from
Sep 20, 2016

Conversation

ezzatron
Copy link
Contributor

This PR simplifies the assertion stack trace trimming I implemented previously, which I copied from Phony.

I found an edge-case bug in the code to do with manually constructing the exception from outside the library's namespace. It probably isn't affecting anyone in the real world, but I ended up refactoring the code to be much simpler, so I thought I'd update the Leo code also.

In addition, I fixed one of the current warnings generated by the test suite. There are still a couple of others to do with ArrayAccess support in InclusionMatcher, so the build will fail here, and that's expected. I'll submit another PR to fix those up shortly.

@coveralls
Copy link

coveralls commented Jun 10, 2016

Coverage Status

Coverage remained the same at 100.0% when pulling 6413b20 on ezzatron:simplified-assertion-trimming into 5ff1a94 on peridot-php:master.

@codecov-io
Copy link

codecov-io commented Sep 20, 2016

Current coverage is 99.76% (diff: 100%)

Merging #22 into master will increase coverage by 0.35%

@@             master        #22   diff @@
==========================================
  Files            40         40          
  Lines           849        842     -7   
  Methods         202        202          
  Messages          0          0          
  Branches          0          0          
==========================================
- Hits            844        840     -4   
+ Misses            5          2     -3   
  Partials          0          0          

Powered by Codecov. Last update a03b1eb...05e75a7

@ezzatron ezzatron merged commit 6bbd382 into peridot-php:master Sep 20, 2016
@ezzatron ezzatron deleted the simplified-assertion-trimming branch September 20, 2016 04:20
@ezzatron ezzatron added this to the Next release milestone Sep 20, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants