propelorm/Propel2 — pull request #262 by cristianoc72 (2012-07-16 21:15:46+00:00)
Title: Fix issue #254

Imho, issue #254 is a PHPunit issue, indeed.
In PHPunit framework, when an exception is thrown inside `setUp()` method, this method ends silently, the relative test isn't performed but `tearDown()` method is called however.
In our `tearDown` method, we access to a variable (`$this->con`) which is not initialized due to an exception, thrown by the instruction at line 44 in `setUp()` method, and it causes the error.
We fix it, checking the conditions that cause the exception, directly in `setUp` method.

I'll submit an issue to PHPunit team as soon as possible.