Sebastian Bergmann schrieb: > Author: sb > Date: Wed Aug 29 20:04:14 2007 > New Revision: 5975 > > Log: > - Fix issue with XMLWriter substitute. > > Modified: > trunk/UnitTest/src/test/runner.php
The issue at hand here is that our test runner feeds the autoload
arrays to PHPUnit's whitelist mechanism so that uncovered files show
up in the reports, too. The problem with xmlwritersubstitute.php is
that it declares a class (XMLWriter) that is available when the PHP
build used includes the xmlwriter extension.
I consider the current solution (blacklisting xmlwritersubstitute.php
in the test runner) a hack. The more correct solution would be to
enclose the declaration of XMLWriter in xmlwritersubstitute.php in
if ( !extension_loaded( 'xmlwriter' ) )
{
// ...
}
What do you think?
--
Sebastian Bergmann
System Developer
[EMAIL PROTECTED] | eZ Systems | http://ez.no
signature.asc
Description: OpenPGP digital signature
-- Components mailing list [email protected] http://lists.ez.no/mailman/listinfo/components
