Skip to content

Commit c318133

Browse files
committed
Documentation improvements on installation and examples
1 parent ce37241 commit c318133

File tree

1 file changed

+10
-18
lines changed

1 file changed

+10
-18
lines changed

README.md

+10-18
Original file line numberDiff line numberDiff line change
@@ -26,26 +26,18 @@ class VCRTest extends \PHPUnit_Framework_TestCase
2626

2727
## Installation
2828

29-
1) Add to your `composer.json`:
29+
1) Install using composer:
3030

31-
``` json
32-
"require-dev": {
33-
"php-vcr/phpunit-testlistener-vcr": "*"
34-
}
35-
```
36-
37-
2) Install using composer:
38-
39-
``` bash
31+
```sh
4032
composer require --dev php-vcr/phpunit-testlistener-vcr
4133
```
4234

43-
3) Add listener to your `phpunit.xml`:
35+
2) Add listener to your `phpunit.xml`:
4436

45-
``` bash
37+
```yml
4638
<listeners>
47-
<listener class="PHPUnit_Util_Log_VCR" file="vendor/php-vcr/phpunit-testlistener-vcr/PHPUnit/Util/Log/VCR.php" />
48-
</listeners>
39+
<listener class="PHPUnit_Util_Log_VCR" file="vendor/php-vcr/phpunit-testlistener-vcr/PHPUnit/Util/Log/VCR.php" />
40+
</listeners>
4941
```
5042

5143
## Dependencies
@@ -59,17 +51,17 @@ PHPUnit-Testlistener-VCR depends on:
5951

6052
In order to run all tests you need to get development dependencies using composer:
6153

62-
``` php
63-
composer install --dev
64-
phpunit ./tests
54+
```php
55+
composer install
56+
./vendor/bin/phpunit
6557
```
6658

6759
## Changelog
6860

6961
* 2013-05-14 1.0.0: First prototype
7062

7163
## Copyright
72-
Copyright (c) 2013 Adrian Philipp. Released under the terms of the MIT license. See LICENSE for details.
64+
Copyright (c) 2013-2016 Adrian Philipp. Released under the terms of the MIT license. See LICENSE for details.
7365

7466
<!--
7567
name of the projects and all sub-modules and libraries (sometimes they are named different and very confusing to new users)

0 commit comments

Comments
 (0)