Fixed
Pinned fields
Click on the next to a field label to start pinning.
Details
Assignee
Luis MajanoLuis MajanoReporter
Adam CameronAdam CameronComponents
Fix versions
Priority
Major
Details
Details
Assignee
Luis Majano
Luis MajanoReporter
Adam Cameron
Adam CameronComponents
Fix versions
Priority
Sentry
Sentry
Sentry
Created January 21, 2014 at 8:01 AM
Updated January 21, 2014 at 6:50 PM
Resolved January 21, 2014 at 6:50 PM
Repro:
function testExpectException_fail_no_exception_raised(){ expectException("MyException"); } function testRaiseException_pass(){ expectException("MyException"); raiseExpectedException(); } function testRaiseException_fail_wrong_exception_raised(){ expectException("MyException"); raiseExpectedException(); } function raiseExpectedException(){ throw(type="MyException"); } function raiseUnexpectedException(){ throw(type="DifferentException"); }
Results:
testRaiseException_pass
Fails due to exception bubbling back to calling code
testRaiseException_fail_wrong_exception_raised
Fails due to exception bubbling back to calling code
testExpectException_fail_no_exception_raised
Incorrectly passes: an exception was expected but none is raised