theseer / phpdox

Documentation generator for PHP Code using standard technology (SRC, DOCBLOCK, XML and XSLT)
http://phpdox.de
Other
600 stars 121 forks source link

Wrong namspace - not a PHPUnit code coverage file #333

Closed cyrilverloop closed 6 years ago

cyrilverloop commented 6 years ago

Hi,

When i use phpdox with a phpunit enricher, an exception is thrown saying "Wrong namspace - not a PHPUnit code coverage file" .

The file "src/generator/enricher/phpunit/PHPUnit.php" has a XMLNS constant which defined a "http" address. But phpunit generates xml report with a "https" value. Hence the exception.

I tried modifying the phpunit report to "http" and the enricher stop throwing the exception. I don't know if adding "https" to the constant would have another impact.

php : 7.2.5 phpunit : 7.1.5 phpdox : 0.11.1

theseer commented 6 years ago

@sebastianbergmann Any Change I should have known about?

theseer commented 6 years ago

Found it: https://github.com/sebastianbergmann/php-code-coverage/commit/83f09c29758c52e71bdb81ad2cc9124b85b5a4ef

theseer commented 6 years ago

@sebastianbergmann: Technically speaking, that was a BC break...

cyrilverloop commented 6 years ago

Thanks for the fix. I'm looking forward for the next release.

joaomfrebelo commented 4 years ago

Hi, the https://schema.phpunit.de/coverage/1.0 is returning error 404 nad because of that is not possible to use it. are nay other option to avoid this?

theseer commented 4 years ago

@joaomfrebelo I don't understand your problem? It's a namespace uri, not a schema validation. (See https://github.com/theseer/phpdox/issues/367#issuecomment-514689771)

theseer commented 4 years ago

@joaomfrebelo If you think the fact the namespace uri doesn't resolve is a problem/bug, open an issue with https://github.com/sebastianbergmann/php-code-coverage