sebastianbergmann / phpcov

TextUI frontend for php-code-coverage
BSD 3-Clause "New" or "Revised" License
226 stars 58 forks source link

"Uncaught Error: Class not found" when running with --xml flag #76

Closed mwurster01 closed 6 years ago

mwurster01 commented 6 years ago

While phpcov works great with the -- clover and the --html flag, I'm experiencing the following error when running phpcov with the --xml flag:

Generating code coverage report in PHP format ...PHP Fatal error:  Uncaught Error: Class 'TheSeer\Tokenizer\Tokenizer' not found in phar:///opt/phpcov/phpcov.phar/phpunit/php-code-coverage/src/Report/Xml/Source.php:37
Stack trace:
#0 phar:///opt/phpcov/phpcov.phar/phpunit/php-code-coverage/src/Report/Xml/Facade.php(165): SebastianBergmann\CodeCoverage\Report\Xml\Source->setSourceCode('<?php\n\nnamespac...')
#1 phar:///opt/phpcov/phpcov.phar/phpunit/php-code-coverage/src/Report/Xml/Facade.php(121): SebastianBergmann\CodeCoverage\Report\Xml\Facade->processFile(Object(SebastianBergmann\CodeCoverage\Node\File), Object(SebastianBergmann\CodeCoverage\Report\Xml\Directory))
#2 phar:///opt/phpcov/phpcov.phar/phpunit/php-code-coverage/src/Report/Xml/Facade.php(117): SebastianBergmann\CodeCoverage\Report\Xml\Facade->processDirectory(Object(SebastianBergmann\CodeCoverage\Node\Directory), Object(SebastianBergmann\CodeCoverage\Report\Xml\Directory))
#3 phar:///opt/phpcov/phpcov.phar/phpunit/php-code-coverage/src/Report/Xml/Facade.php(117): SebastianBergmann\CodeCoverage\Report\Xml\Facade in phar:///opt/phpcov/phpcov.phar/phpunit/php-code-coverage/src/Report/Xml/Source.php on line 37
jakesylvestre commented 5 years ago

Hi, how did you fix this?