Testing PEAR Packages
| From: | Jon Wood | Date: | Fri, 22 Oct 2004 16:26:03 +0000 |
| Subject: | Testing PEAR Packages | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-34031@lists.php.net to get a copy of this message | ||
Hey,
I'm trying to write test suites for some packages at the moment, and
wondered if anybody knows of a way to make them easier to use than
currently.
I'm using PHPUnit2, and have the problem of not being able to run my
tests without building and installing a new version of the package
first, due to "require_once("Package/Component.php");" calls which
require the code to be in the include_path.
I'm sure I could hack together a quick script which sets the
include_path before running the test suite, but I'd rather know if
there's a less hackish solution to the problem.
Jon