diff --git a/README.md b/README.md index 4e68906..54a18b3 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/composer.json b/composer.json index 97f7641..6e6c2da 100644 --- a/composer.json +++ b/composer.json @@ -19,9 +19,7 @@ } }, "require": { - "php-vcr/php-vcr": "^1.4" - }, - "require-dev": { + "php-vcr/php-vcr": "^1.4", "phpunit/phpunit": "^7" } } diff --git a/src/VCRTestListener.php b/src/VCRTestListener.php index 1f0df1a..d32a491 100644 --- a/src/VCRTestListener.php +++ b/src/VCRTestListener.php @@ -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 {