Page 1 of 1

It would be nice if it came with PhpUnit for PHP 7.x

PostPosted: 23. January 2020 09:37
by Henk Poley
The PhpUnit (and PECL and PEAR) that was installed with Xampp 7.3.12 is not compatible with PHP 7.3

Code: Select all
C:\project>c:\xampp_7.3.12\php\pecl.bat install phpunit
No releases available for package "pecl.php.net/phpunit"
install failed

C:\project>c:\xampp_7.3.12\php\phpunit
PHP Warning:  "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in C:\xampp_7.3.12\php\pear\PHPUnit\TextUI\Command.php on line 277

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in C:\xampp_7.3.12\php\pear\PHPUnit\TextUI\Command.php on line 277
PHP Warning:  "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in C:\xampp_7.3.12\php\pear\PHPUnit\TextUI\Command.php on line 285

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in C:\xampp_7.3.12\php\pear\PHPUnit\TextUI\Command.php on line 285
PHPUnit 3.7.21 by Sebastian Bergmann.

Configuration read from C:\project\phpunit.xml



Time: 0 seconds, Memory: 10.00Mb

No tests executed!


Also Xampp's ssl support (php.ini: extension=php_openssl.dll) is somehow not sufficient:

Code: Select all
C:\project>c:\xampp_7.3.12\php\pecl update-channels
Updating channel "doc.php.net"
Channel "doc.php.net" is up to date
Updating channel "pear.php.net"
Channel "pear.php.net" is not responding over http://, failed with message: Connection to `pear.php.net:443' failed: Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP?
Trying channel "pear.php.net" over https:// instead
Cannot retrieve channel.xml for channel "pear.php.net" (Connection to `pear.php.net:443' failed: Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP?)
Updating channel "pecl.php.net"
Channel "pecl.php.net" is up to date