Skip to content

Refactored package to use PHPUnit 6 and namespaces #22

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
*.sublime-*
**/vendor/*
coverage/*
composer.lock
8 changes: 0 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,6 @@ language: php
matrix:
fast_finish: true
include:
- php: 5.3
- env: COMPOSER_FLAGS="--prefer-lowest"
php: 5.3
- php: 5.4
- php: 5.5
- php: 5.6
- env: COMPOSER_FLAGS="--prefer-lowest"
php: 5.6
- php: 7.0
- php: 7.1
- env: COMPOSER_FLAGS="--prefer-lowest"
Expand Down
206 changes: 0 additions & 206 deletions PHPUnit/Util/Log/VCR.php

This file was deleted.

17 changes: 10 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,11 @@ Use `@vcr cassette_name` on your tests to turn VCR automatically on and off.

## Usage example

```php
class VCRTest extends \PHPUnit_Framework_TestCase
``` php

use PHPUnit\Framework\TestCase;

class VCRTest extends TestCase
{
/**
* @vcr unittest_annotation_test
Expand All @@ -30,15 +33,15 @@ class VCRTest extends \PHPUnit_Framework_TestCase

1) Install using composer:

```sh
``` sh
composer require --dev php-vcr/phpunit-testlistener-vcr
```

2) Add listener to your `phpunit.xml`:

```yml
``` xml
<listeners>
<listener class="PHPUnit_Util_Log_VCR" file="vendor/php-vcr/phpunit-testlistener-vcr/PHPUnit/Util/Log/VCR.php" />
<listener class="VCR\PHPUnit\TestListener\VCRTestListener" file="vendor/php-vcr/phpunit-testlistener-vcr/src/VCRTestListener.php" />
</listeners>
```

Expand All @@ -53,7 +56,7 @@ PHPUnit-Testlistener-VCR depends on:

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

```php
``` php
composer install
./vendor/bin/phpunit
```
Expand All @@ -63,7 +66,7 @@ composer install
**The changelog is manage at [PHPUnit testlistener for PHP-VCR releases page](https://github.com/php-vcr/phpunit-testlistener-vcr/releases).**

## Copyright
Copyright (c) 2013-2016 Adrian Philipp. Released under the terms of the MIT license. See LICENSE for details.
Copyright (c) 2013-2017 Adrian Philipp. Released under the terms of the MIT license. See LICENSE for details.

<!--
name of the projects and all sub-modules and libraries (sometimes they are named different and very confusing to new users)
Expand Down
16 changes: 12 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,26 @@
"name": "php-vcr/phpunit-testlistener-vcr",
"description": "Integrates PHPUnit with PHP-VCR.",
"license": "MIT",

"authors": [
{
"name": "Adrian Philipp",
"email": "mail@adrian-philipp.com"
}
],

"autoload": {
"psr-4": {
"VCR\\PHPUnit\\TestListener\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"Tests\\VCR\\PHPUnit\\TestListener\\": "tests/"
}
},
"require": {
"php-vcr/php-vcr": "^1.1.8"
"php-vcr/php-vcr": "^1.3"
},
"require-dev": {
"phpunit/phpunit": "^4.8|^5.0"
"phpunit/phpunit": "^6.2"
}
}
Loading