Closed jakobmats closed 5 years ago
Hi @jakobmats!
I tried reproducing the issue you described, but I'm unable to reproduce it. I added the exact test that you're seeing fail to our tests, but it passes locally and on travis. Could you provide some more context where you're seeing this happen, such as the version of PHP and phpunit
you're using?
Closing due to inactivity and because the issue can't be reproduced.
I'm working on a simple abstraction built on top of http-server for making async APIs and I ran into the following issue - when I try to write a test to assert that an exception is thrown, TestCase::expectException() seems to be unaware of it actually happening. Take a look at this snippet:
And the output from PHPUnit:
The other test case passes without problems. Any ideas why it happens? As far as I understand it the error should bubble up until it hits the top level so that PHPUnit is supposed to see it, no?