Sebastian Bergmann wrote:
Darby Felton wrote:
http://framework.zend.com/issues/browse/ZF-417
I do not understand what "Cannot run isolated tests" refers to. Every
test is run in an isolated environment (fresh object of the test case
class plus cleaned up $GLOBALS etc.) by PHPUnit.
Given the conventions used in the stock AllTests file, its impossible to
load and run a specific suite of tests without loading all tests. This
leads to one inconvenience and one problem.
The inconvenience is that to incrementally develop my tests, I have to
run all tests to run my tests.
The problem that occurs is that since all files are loaded, then run, My
Component A which fails to require an external component B, but that
component B is loaded by another Component C will not catch the coupling
error. If i were able to run A without loading and run C I would have
caught the error.
Currently, the issue discovered is
http://framework.zend.com/issues/browse/ZF-437
This is not a problem with PHPUnit3 as I personally thing PHPUnit3 is
superb, its a design issue with php itself.. Until namespaces are
supported, completely isolated tests (with respect to require-once and
class loading) is not possible.
-ralph