shivam shivam - 23 days ago 9
PHP Question

PHPUnit throwing broken signature error

Followed the steps for PHPUnit installation in windows from source site but got broken signature exception on issuing version command:


php phpunit-5.6.5.phar --version


PHP Fatal error: Uncaught PharException: phar "C:\xampp\htdocs\phpunit-5.6.5.ph
ar" has a broken signature in C:\xampp\htdocs\phpunit-5.6.5.phar:21
Stack trace:
#0 C:\xampp\htdocs\phpunit-5.6.5.phar(21): Phar::mapPhar('phpunit-5.6.5.p...')
#1 {main}
thrown in C:\xampp\htdocs\phpunit-5.6.5.phar on line 21

Fatal error: Uncaught PharException: phar "C:\xampp\htdocs\phpunit-5.6.5.phar" h
as a broken signature in C:\xampp\htdocs\phpunit-5.6.5.phar:21
Stack trace:
#0 C:\xampp\htdocs\phpunit-5.6.5.phar(21): Phar::mapPhar('phpunit-5.6.5.p...')
#1 {main}
thrown in C:\xampp\htdocs\phpunit-5.6.5.phar on line 21

Answer Source

Please refer the below installation manual :

https://phpunit.de/manual/current/en/installation.html