From ddf761ff78165dfe9f30c65eb66e464e6f281377 Mon Sep 17 00:00:00 2001 From: David Stockton Date: Thu, 30 Sep 2021 22:23:38 -0600 Subject: [PATCH] Update docs Closes #409 --- concepts/for-loops/about.md | 2 +- concepts/for-loops/introduction.md | 2 +- docs/INSTALLATION.md | 10 ++++++---- docs/LEARNING.md | 19 +++++++++---------- docs/TESTS.md | 2 +- exercises/shared/.docs/tests.md | 2 +- 6 files changed, 19 insertions(+), 18 deletions(-) diff --git a/concepts/for-loops/about.md b/concepts/for-loops/about.md index 5495c65e..f58f13f7 100644 --- a/concepts/for-loops/about.md +++ b/concepts/for-loops/about.md @@ -3,7 +3,7 @@ `for` loops are the most complex type of loop in PHP. They behave like `for` loops in `C`, `Java`, and `JavaScript`. It's basic form is: ```php -for (expr1, expr2, expr3) { +for (expr1; expr2; expr3) { // statements } ``` diff --git a/concepts/for-loops/introduction.md b/concepts/for-loops/introduction.md index cc3068f3..c57e3934 100644 --- a/concepts/for-loops/introduction.md +++ b/concepts/for-loops/introduction.md @@ -3,7 +3,7 @@ `for` loops are the most complex type of loop in PHP. They behave like `for` loops in `C`, `Java`, and `JavaScript`. It's basic form is: ```php -for (expr1, expr2, expr3) { +for (expr1; expr2; expr3) { // statements } ``` diff --git a/docs/INSTALLATION.md b/docs/INSTALLATION.md index be2e4e9f..9f0d9c74 100644 --- a/docs/INSTALLATION.md +++ b/docs/INSTALLATION.md @@ -30,7 +30,7 @@ For further instructions, read the manual on [Installation on Unix systems](http ### macOS -Normally macOS comes with PHP installed, but it is often an outdated version. There are other pre-built options available, including [MAMP](http://www.mamp.info/en/) and [php-osx.liip.ch](https://php-osx.liip.ch/). +Normally macOS comes with PHP installed, but it is often an outdated version. There are other pre-built options available, including [MAMP](http://www.mamp.info/en/) and [php-osx.liip.ch](https://php-osx.liip.ch/). Installing PHP through [HomeBrew](https://brew.sh/) is also a good option. For further instructions, read the manual on [Installation on macOS](https://www.php.net/manual/en/install.macosx.php). @@ -50,12 +50,14 @@ If you want to use a different OS, see instruction on [php.net/manual/en/install #### Via Composer -PHPUnit version 8 can be installed globally via [Composer](https://getcomposer.org), using the following command. +PHPUnit version 9 can be installed globally via [Composer](https://getcomposer.org), using the following command. ```bash -> composer global require phpunit/phpunit ^8 +> composer global require phpunit/phpunit ^9 ``` +It you are using PHP 8+ make sure you install at version 9.5 or later. + #### Manual installation -If you are not using Composer package manager, follow the official [Installing PHPUnit instructions](https://phpunit.readthedocs.io/en/8.5/installation.html). +If you are not using Composer package manager, follow the official [Installing PHPUnit instructions](https://phpunit.readthedocs.io/en/9.5/installation.html). diff --git a/docs/LEARNING.md b/docs/LEARNING.md index d78cc013..a8eac9b3 100644 --- a/docs/LEARNING.md +++ b/docs/LEARNING.md @@ -1,10 +1,9 @@ -# Recommended Learning Resources - -Exercism provides exercises and feedback but can be difficult to jump into for those learning PHP for the first time. These free resources can help you get started: - -[Laracasts - The PHP Practitioner Video Tutorials](https://laracasts.com/series/php-for-beginners) -[PHP Documentation](http://php.net/docs.php) -[PHP The Right Way](http://www.phptherightway.com/) -[Codecademy's PHP Course](https://www.codecademy.com/learn/php) -[StackOverflow](http://stackoverflow.com/questions/tagged/php) -[PHP Pandas (Online Book)](https://daylerees.com/php-pandas/) +# Recommended Learning Resources + +Exercism provides exercises and feedback but can be difficult to jump into for those learning PHP for the first time. These free resources can help you get started: + +* [Laracasts - The PHP Practitioner Video Tutorials](https://laracasts.com/series/php-for-beginners) +* [PHP Documentation](http://php.net/docs.php) +* [PHP The Right Way](http://www.phptherightway.com/) +* [Codecademy's PHP Course](https://www.codecademy.com/learn/php) +* [StackOverflow](http://stackoverflow.com/questions/tagged/php) diff --git a/docs/TESTS.md b/docs/TESTS.md index b8c57964..eab79c62 100644 --- a/docs/TESTS.md +++ b/docs/TESTS.md @@ -9,5 +9,5 @@ Execute the tests with: For example, to run the tests for the Hello World exercise, you would run: ``` -$ phpunit hello-world_test.php +$ phpunit HellowWorldTest.php ``` diff --git a/exercises/shared/.docs/tests.md b/exercises/shared/.docs/tests.md index 6bced6d7..ba72083f 100644 --- a/exercises/shared/.docs/tests.md +++ b/exercises/shared/.docs/tests.md @@ -17,7 +17,7 @@ For example, to run the tests for the Hello World exercise, you would run: - ➜ ./phpunit hello-world_test.php + ➜ ./phpunit HelloWorldTest.php [PHPUnit]: http://phpunit.de