Phpunit of the official doc doesn't work
I got an error with phpunit
command in this official example.
$ phpunit --version
/usr/local/bin/phpunit
/usr/local/bin/phpunit: line 1: html: No such file or directory
/usr/local/bin/phpunit: line 2: syntax error near unexpected token `<'
/usr/local/bin/phpunit: line 2: `<head><title>302 Found</title></head>
I found the installed phpunit has broken.
root@bf5c3a0320d5:/# cat /usr/local/bin/phpunit
<html>
<head><title>302 Found</title></head>
<body bgcolor="white">
<center><h1>302 Found</h1></center>
<hr><center>nginx/1.10.1</center>
</body>
</html>
I guess that phpunit URL has been changed. This should be changed to below.
# wrong
curl -o /usr/local/bin/phpunit https://phar.phpunit.de/phpunit.phar
# good
curl -Lo /usr/local/bin/phpunit https://phar.phpunit.de/phpunit.phar
I'll send a PR.