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

Problems with the Windows version of XAMPP, questions, comments, and anything related.

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

Postby Henk Poley » 23. January 2020 09:37

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
Henk Poley
 
Posts: 1
Joined: 23. January 2020 09:30
XAMPP version: 7.3.12
Operating System: Windows 10 1909

Return to XAMPP for Windows

Who is online

Users browsing this forum: cerovy and 139 guests