autoloads that are directly passed to ezcBase::addClassRepository.
The instantiation of a db connection is already implemented in the original
code.
Making my living easier works as follows:
I'm to lazy to write a monotonously suite.php for every suite which contains
only the information about the suite name.
Instead of that I put the suite name in the directory:
"tests_search_cars" - Every directory starting with "tests_" is a suite and
the following substring is the suite name. Suites can be nested.
All files ending on "_test.php" are added either to the global test suite or
to the suite represented by the directory they are in.
While working with the tool, I discovered that the ezc testrunner doesn't pass
the filter option to run only tests which match a pattern. This is added in my
runner too.
Some small todos:
- handle wildcards
- add ezc classes and testrunner classes to the filter for code coverage
- support also other locations for autoload files instead of autoload/
- add comments and licence infos...
download:
phpunit_testrunner.tar.gz