Is there an argument I can feed to my phpunit command to force emission of a stack trace?

32 Views Asked by At

I am running a command like this:

phpunit path/to/my/testSet.raml

... and I'm finding that I get a rather opaque message about expecting a 201 but getting a 500. No stack trace is given.

Is there an argument that I can feed to my phpunit command that will cause it to emit a stack trace when there is a problem?

1

There are 1 best solutions below

0
matiaslauriti On

I am not sure if this is pure PHPUnit or not, but try $this->withoutExceptionHandling(); at the beginning of your test, that should throw the exception instead of giving you the assertion error


This may only work on Laravel, but I am not sure, just give it a try