slimphp-api / slim-api

Command line interface for generating API end points with Slim
MIT License
11 stars 1 forks source link

Unit Testing in SLIM exceptions thrown outside of test cases #59

Open karneaud opened 8 years ago

karneaud commented 8 years ago

I refer to my post on stack

I'm trying to unit test Slim's error handling I'm running the above code in the unit test and I get thrown an exception BEFORE my tests are finished.

I'm trying to test the error handling responses from slim when throwing errors.

Did I forget to do something or is my testing logic wrong?