We are familiar with 2 parameters calling methods in programming languages such as C: called by value or by reference. Basically if you want to change the value of the original variables outside the function, you need to call by reference, or you can just call by value.
For a system-wide installation via Composer, you can run:
1
$ composer global require "phpunit/phpunit=5.5.*"
In MacOS Sierra, you might need to use sudo for permission issue.
After installation, you can check PHPUnit version by:
1 2
$ phpunit --version PHPUnit 5.5.7 by Sebastian Bergmann and contributors.
If it shows up command not found, try:
1 2 3 4 5 6 7
$ ~/.composer/vendor/bin/phpunit --version PHPUnit 5.5.7 by Sebastian Bergmann and contributors.
# Then you can use alias for short $ alias phpunit='~/.composer/vendor/bin/phpunit' $ phpunit --version PHPUnit 5.5.7 by Sebastian Bergmann and contributors.
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.