Skip to content

Added PHPUnit dependency, fixed some phpdoc #32

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

Open
wants to merge 1 commit into
base: 3.1
Choose a base branch
from
Open
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 README.md
Original file line number Diff line number Diff line change
@@ -50,6 +50,7 @@ PHPUnit-Testlistener-VCR depends on:
* PHP 7.1+
* PHP 7.0+ (use <3.0)
* [php-vcr/php-vcr](https://github.com/php-vcr/php-vcr)
* [PHPUnit](https://phpunit.de/#supported-versions) 7

## Run tests

4 changes: 1 addition & 3 deletions composer.json
Original file line number Diff line number Diff line change
@@ -19,9 +19,7 @@
}
},
"require": {
"php-vcr/php-vcr": "^1.4"
},
"require-dev": {
"php-vcr/php-vcr": "^1.4",
"phpunit/phpunit": "^7"
}
}
14 changes: 7 additions & 7 deletions src/VCRTestListener.php
Original file line number Diff line number Diff line change
@@ -58,9 +58,9 @@ public function __construct(array $options = array())
/**
* An error occurred.
*
* @param Test $test
* @param Exception $e
* @param float $time
* @param Test $test
* @param \Throwable $t
* @param float $time
*/
public function addError(Test $test, \Throwable $t, float $time): void
{
@@ -94,7 +94,7 @@ public function addFailure(Test $test, AssertionFailedError $e, float $time): vo
* Incomplete test.
*
* @param Test $test
* @param \Exception $e
* @param \Throwable $e
* @param float $time
*/
public function addIncompleteTest(Test $test, \Throwable $e, float $time): void
@@ -105,7 +105,7 @@ public function addIncompleteTest(Test $test, \Throwable $e, float $time): void
* Skipped test.
*
* @param Test $test
* @param \Exception $e
* @param \Throwable $e
* @param float $time
*/
public function addSkippedTest(Test $test, \Throwable $e, float $time): void
@@ -116,7 +116,7 @@ public function addSkippedTest(Test $test, \Throwable $e, float $time): void
* Risky test.
*
* @param Test $test
* @param \Exception $e
* @param \Throwable $e
* @param float $time
*/
public function addRiskyTest(Test $test, \Throwable $e, float $time): void
@@ -128,7 +128,7 @@ public function addRiskyTest(Test $test, \Throwable $e, float $time): void
*
* @param Test $test
*
* @return bool|null
* @throws \ReflectionException
*/
public function startTest(Test $test): void
{