This repository is used for In2it's PHPUnit: the Basics training course.
To participate you can fork this repository to your own GitHub account. To learn how to fork, please read the GitHub documentation explaining the forking process.
Once you have forked the repository, you need to clone it locally on your computer so you can work with the source code.
git clone [email protected]:<username>/phpunit-basics.git
This will create a local copy of the repository in directory phpunit-basics
. Once you go into that directory, you'll see only the following files:
cd phpunit-basics/
ls -a
.git .gitignore composer.json composer.lock LICENSE README.md
If you don't have Composer installed yet, now is a good time to download it.
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php -r "if (hash_file('SHA384', 'composer-setup.php') === '544e09ee996cdf60ece3804abc52599c22b1f40f4323403c44d44fdfdd586475ca9813a858088ffbc1f233e9b180f061') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
php composer-setup.php
php -r "unlink('composer-setup.php');"
Or download the PHAR package directly at getcomposer.org/composer.phar.
Once composer is installed, we can start installing the required packages. We're using composer
as command, but if you have downloaded the PHAR file, remember to use php composer.phar
instead.
composer install
This source code is provided for free by In2it as part of PHPUnit: the Basics and is licensed with Apache License 2.0. Copyright 2009 - 2017 © In2it. All rights reserved.