Skip to content
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

Added PHPUnit dependency, fixed some phpdoc #32

Open
wants to merge 1 commit into
base: 3.1
Choose a base branch
from
Open
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 README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 1 addition & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Up @@ -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
{
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
{
Expand Down