Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

Zend\Test Enable trace error by default #6108

Closed
wants to merge 1 commit into from
Closed

Zend\Test Enable trace error by default #6108

wants to merge 1 commit into from

Conversation

blanchonvincent
Copy link
Contributor

I wanted to change this for a long time but I Had to wait for #6041, but now it's ok, we can enable trace error by default, it will be better for developer.

It's not a BC because if test is broken now, it's because the developer had an exception he didn't see, so it's better :)

@Ocramius
Copy link
Member

Ocramius commented Apr 8, 2014

We discussed this before - this is a breakage. Marking for 2.4

@Ocramius Ocramius added this to the 2.4.0 milestone Apr 8, 2014
@Ocramius Ocramius self-assigned this Jul 27, 2014
Ocramius added a commit that referenced this pull request Jul 27, 2014
@Ocramius
Copy link
Member

Manually merged @32182a128396fa8553cc203beb990a2c091fd8c9

@Ocramius Ocramius closed this Jul 27, 2014
@sylvainL
Copy link

sylvainL commented Apr 9, 2015

Hey
I Just migrate from 2.3.7 to 2.4.0. My test passed before and fails now. Yes an exception is raised and this is the expected behavior for my test.

The exception is raised and then handled by my (Zend) app during the dispatch event. The controller returns an HTTP 500 with a proper template (error/index).

So When I try to handle this with a "$this->setExpectedException(...)", it does not work because no exception is raised in test, but the trace crashes my test.

I don't want to set traceError to false everywhere, so what is the way to handle that ?

Thxs

gianarb pushed a commit to zendframework/zend-test that referenced this pull request May 15, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants