Re: Re: XML_Parser offline unit tests
| From: | Christian Weiske | Date: | Fri, 03 Aug 2007 12:06:46 +0000 |
| Subject: | Re: Re: XML_Parser offline unit tests | ||
| References: | 1 2 | Groups: | php.pear.qa |
| Request: | Send a blank email to pear-qa+get-4480@lists.php.net to get a copy of this message | ||
Sebastian,
> > or even better
> >> require_once('XML/Parser.php');
> why is this better?
>
> you can assume XML_Parser tests are always on the same relative path
> to XML classes, but you cannot assume that XML/ parent dir is always
> in include path ... i would prefer the first one with dirname()
If you do
> pear run-tests -p XML_Parser
the package is installed, thus the directory structure differs from CVS
- Parser.php is no longer on a predictable relative path but can be
everywhere.
--
Regards/Mit freundlichen Grüßen
Christian Weiske