From 3056e2ff25a870c94de1da59717a22a7f87434bb Mon Sep 17 00:00:00 2001 From: Sebastian Bergmann Date: Mon, 31 Aug 2015 19:18:12 +0200 Subject: [PATCH 1/3] Tweak --- CONTRIBUTING.md | 8 ++++---- README.md | 17 ++++++++++++----- 2 files changed, 16 insertions(+), 9 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 5226a15799d..d39b954138a 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -21,7 +21,7 @@ Due to time constraints, we are not always able to respond as quickly as we woul This project comes with a configuration file for [php-cs-fixer](https://github.com/FriendsOfPHP/PHP-CS-Fixer) (`.php_cs`) that you can use to (re)format your sourcecode for compliance with this project's coding guidelines: -``` +```bash $ wget http://get.sensiolabs.org/php-cs-fixer.phar $ php php-cs-fixer.phar fix @@ -31,7 +31,7 @@ $ php php-cs-fixer.phar fix The following commands can be used to perform the initial checkout of PHPUnit: -``` +```bash $ git clone git://github.com/sebastianbergmann/phpunit.git $ cd phpunit @@ -39,7 +39,7 @@ $ cd phpunit Retrieve PHPUnit's dependencies using [Composer](http://getcomposer.org/): -``` +```bash $ wget http://getcomposer.org/composer.phar $ php composer.phar install @@ -47,7 +47,7 @@ $ php composer.phar install The `phpunit` script can be used to invoke the PHPUnit test runner: -``` +```bash $ ./phpunit --version ``` diff --git a/README.md b/README.md index 8d4f9c41670..75bc7de38cf 100644 --- a/README.md +++ b/README.md @@ -9,14 +9,21 @@ PHPUnit is a programmer-oriented testing framework for PHP. It is an instance of We distribute a [PHP Archive (PHAR)](http://php.net/phar) that has all required (as well as some optional) dependencies of PHPUnit bundled in a single file: - wget https://phar.phpunit.de/phpunit.phar - chmod +x phpunit.phar - mv phpunit.phar /usr/local/bin/phpunit +```bash +$ wget https://phar.phpunit.de/phpunit.phar + +$ chmod +x phpunit.phar + +$ mv phpunit.phar /usr/local/bin/phpunit +``` You can also immediately use the PHAR after you have downloaded it, of course: - wget https://phar.phpunit.de/phpunit.phar - php phpunit.phar +```bash +$ wget https://phar.phpunit.de/phpunit.phar + +$ php phpunit.phar +``` Alternatively, you may use [Composer](http://getcomposer.org/) to download and install PHPUnit as well as its dependencies. Please refer to the [documentation](https://phpunit.de/documentation.html) for details on how to do this. From ee20368ab82a869f74a5cbcc01db67c50989a065 Mon Sep 17 00:00:00 2001 From: Sebastian Bergmann Date: Mon, 31 Aug 2015 19:21:57 +0200 Subject: [PATCH 2/3] Add badge for required PHP version --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 75bc7de38cf..6a3d0ec0150 100644 --- a/README.md +++ b/README.md @@ -2,8 +2,9 @@ PHPUnit is a programmer-oriented testing framework for PHP. It is an instance of the xUnit architecture for unit testing frameworks. -[![Build Status](https://img.shields.io/travis/sebastianbergmann/phpunit/4.8.svg?style=flat-square)](https://travis-ci.org/sebastianbergmann/phpunit) [![Latest Stable Version](https://img.shields.io/packagist/v/phpunit/phpunit.svg?style=flat-square)](https://packagist.org/packages/phpunit/phpunit) +[![Minimum PHP Version](https://img.shields.io/badge/php-%3E%3D%205.3.3-8892BF.svg?style=flat-square)](https://php.net/) +[![Build Status](https://img.shields.io/travis/sebastianbergmann/phpunit/4.8.svg?style=flat-square)](https://travis-ci.org/sebastianbergmann/phpunit) ## Installation From e813a37dd85b574987393412c34bcdd3eebc1c9d Mon Sep 17 00:00:00 2001 From: Sebastian Bergmann Date: Mon, 31 Aug 2015 19:22:49 +0200 Subject: [PATCH 3/3] Use HTTPS instead of HTTP --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 6a3d0ec0150..d1b5f30888b 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ PHPUnit is a programmer-oriented testing framework for PHP. It is an instance of ## Installation -We distribute a [PHP Archive (PHAR)](http://php.net/phar) that has all required (as well as some optional) dependencies of PHPUnit bundled in a single file: +We distribute a [PHP Archive (PHAR)](https://php.net/phar) that has all required (as well as some optional) dependencies of PHPUnit bundled in a single file: ```bash $ wget https://phar.phpunit.de/phpunit.phar @@ -26,7 +26,7 @@ $ wget https://phar.phpunit.de/phpunit.phar $ php phpunit.phar ``` -Alternatively, you may use [Composer](http://getcomposer.org/) to download and install PHPUnit as well as its dependencies. Please refer to the [documentation](https://phpunit.de/documentation.html) for details on how to do this. +Alternatively, you may use [Composer](https://getcomposer.org/) to download and install PHPUnit as well as its dependencies. Please refer to the [documentation](https://phpunit.de/documentation.html) for details on how to do this. ## Contribute