diff --git a/.github/settings.yml b/.github/settings.yml
index 2216b7bf..d8471a79 100644
--- a/.github/settings.yml
+++ b/.github/settings.yml
@@ -21,6 +21,8 @@ branches:
- context: "Refactoring (7.4, locked)"
- context: "Security Analysis (7.4, locked)"
- context: "Static Code Analysis (7.4, locked)"
+ - context: "Tests (6.5.0, 7.0, highest)"
+ - context: "Tests (6.5.0, 7.0, lowest)"
- context: "Tests (6.5.0, 7.1, highest)"
- context: "Tests (6.5.0, 7.1, lowest)"
- context: "Tests (6.5.0, 7.2, highest)"
diff --git a/.github/workflows/integrate.yaml b/.github/workflows/integrate.yaml
index 8cfd424e..79c05733 100644
--- a/.github/workflows/integrate.yaml
+++ b/.github/workflows/integrate.yaml
@@ -460,6 +460,7 @@ jobs:
- "6.5.0"
php-version:
+ - "7.0"
- "7.1"
- "7.2"
- "7.3"
@@ -688,9 +689,13 @@ jobs:
run: "composer config platform.php --ansi --unset"
- name: "Require phpunit/phpunit:^${{ matrix.phpunit-version }}"
- if: "matrix.dependencies != 'locked'"
+ if: "matrix.dependencies != 'locked' && matrix.phpunit-version != '6.5.0'"
run: "composer require phpunit/phpunit:^${{ matrix.phpunit-version }} --ansi --no-interaction --no-progress --update-with-all-dependencies"
+ - name: "Require fakerphp/faker:^1.9.2 and phpunit/phpunit:^${{ matrix.phpunit-version }}"
+ if: "matrix.dependencies != 'locked' && matrix.phpunit-version == '6.5.0'"
+ run: "composer require fakerphp/faker:^1.9.2 phpunit/phpunit:^${{ matrix.phpunit-version }} --ansi --no-interaction --no-progress --update-with-all-dependencies"
+
- name: "Install ${{ matrix.dependencies }} dependencies with composer"
uses: "ergebnis/.github/actions/composer/install@1.9.0"
with:
diff --git a/.php-cs-fixer.php b/.php-cs-fixer.php
index 83ce546d..2239aea7 100644
--- a/.php-cs-fixer.php
+++ b/.php-cs-fixer.php
@@ -26,11 +26,10 @@
$license->save();
-$ruleSet = PhpCsFixer\Config\RuleSet\Php71::create()
+$ruleSet = PhpCsFixer\Config\RuleSet\Php70::create()
->withHeader($license->header())
->withRules(PhpCsFixer\Config\Rules::fromArray([
'mb_str_functions' => false,
- 'void_return' => false,
]));
$config = PhpCsFixer\Config\Factory::fromRuleSet($ruleSet);
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 680f61c4..f54e7eb2 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -11,6 +11,7 @@ For a full diff see [`2.13.0...main`][2.13.0...main].
### Changed
- Added support for `phpunit/phpunit:^6.5.0` ([#533]), by [@localheinz]
+- Added support for PHP 7.0 ([#534]), by [@localheinz]
## [`2.13.0`][2.13.0]
@@ -318,6 +319,7 @@ For a full diff see [`7afa59c...1.0.0`][7afa59c...1.0.0].
[#531]: https://github.com/ergebnis/phpunit-slow-test-detector/pull/531
[#532]: https://github.com/ergebnis/phpunit-slow-test-detector/pull/532
[#533]: https://github.com/ergebnis/phpunit-slow-test-detector/pull/533
+[#534]: https://github.com/ergebnis/phpunit-slow-test-detector/pull/534
[@HypeMC]: https://github.com/HypeMC
[@localheinz]: https://github.com/localheinz
diff --git a/composer.json b/composer.json
index 59d8c0b0..b118c74a 100644
--- a/composer.json
+++ b/composer.json
@@ -24,7 +24,7 @@
"security": "https://github.com/ergebnis/phpunit-slow-test-detector/blob/main/.github/SECURITY.md"
},
"require": {
- "php": "~7.1.0 || ~7.2.0 || ~7.3.0 || ~7.4.0 || ~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0",
+ "php": "~7.0.0 || ~7.1.0 || ~7.2.0 || ~7.3.0 || ~7.4.0 || ~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0",
"phpunit/phpunit": "^6.5.0 || ^7.5.0 || ^8.5.19 || ^9.0.0 || ^10.0.0 || ^11.0.0"
},
"require-dev": {
diff --git a/composer.lock b/composer.lock
index 1236eb1c..e804d98f 100644
--- a/composer.lock
+++ b/composer.lock
@@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
- "content-hash": "058a42de1e2a99c5265c30e8a8094d1e",
+ "content-hash": "58d0cd8c7c84530c644b5a47b3b79d98",
"packages": [
{
"name": "doctrine/instantiator",
@@ -5566,7 +5566,7 @@
"prefer-stable": true,
"prefer-lowest": false,
"platform": {
- "php": "~7.1.0 || ~7.2.0 || ~7.3.0 || ~7.4.0 || ~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0"
+ "php": "~7.0.0 || ~7.1.0 || ~7.2.0 || ~7.3.0 || ~7.4.0 || ~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0"
},
"platform-dev": [],
"platform-overrides": {
diff --git a/psalm-baseline.xml b/psalm-baseline.xml
index 83f29a84..dd699405 100644
--- a/psalm-baseline.xml
+++ b/psalm-baseline.xml
@@ -106,7 +106,47 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -115,26 +155,138 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -142,6 +294,20 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -491,4 +657,170 @@
milliseconds * 1000]]>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/psalm.xml b/psalm.xml
index 00713658..d0440625 100644
--- a/psalm.xml
+++ b/psalm.xml
@@ -12,6 +12,10 @@
resolveFromConfigFile="true"
strictBinaryOperands="true"
>
+
+
+
+
diff --git a/rector.php b/rector.php
index e267ff1e..4677a4ed 100644
--- a/rector.php
+++ b/rector.php
@@ -23,5 +23,5 @@
__DIR__ . '/test/',
]);
- $rectorConfig->phpVersion(ValueObject\PhpVersion::PHP_71);
+ $rectorConfig->phpVersion(ValueObject\PhpVersion::PHP_70);
};
diff --git a/src/Collector/Collector.php b/src/Collector/Collector.php
index 8806132d..fbfd7d28 100644
--- a/src/Collector/Collector.php
+++ b/src/Collector/Collector.php
@@ -20,7 +20,7 @@
*/
interface Collector
{
- public function collect(SlowTest $slowTest): void;
+ public function collect(SlowTest $slowTest);
/**
* @phpstan-return list
diff --git a/src/Collector/DefaultCollector.php b/src/Collector/DefaultCollector.php
index 3eab4cd3..7724e7d3 100644
--- a/src/Collector/DefaultCollector.php
+++ b/src/Collector/DefaultCollector.php
@@ -25,7 +25,7 @@ final class DefaultCollector implements Collector
*/
private $slowTests = [];
- public function collect(SlowTest $slowTest): void
+ public function collect(SlowTest $slowTest)
{
$key = $slowTest->testIdentifier()->toString();
diff --git a/src/Extension.php b/src/Extension.php
index 5f0c68a3..271ca405 100644
--- a/src/Extension.php
+++ b/src/Extension.php
@@ -353,7 +353,7 @@ public function executeAfterLastTest(): void
private function resolveMaximumDuration(string $test): Duration
{
- [$testClassName, $testMethodName] = \explode(
+ list($testClassName, $testMethodName) = \explode(
'::',
$test
);
diff --git a/test/EndToEnd/Version06/Configuration/Defaults/SleeperTest.php b/test/EndToEnd/Version06/Configuration/Defaults/SleeperTest.php
index b32d19f4..a05fba29 100644
--- a/test/EndToEnd/Version06/Configuration/Defaults/SleeperTest.php
+++ b/test/EndToEnd/Version06/Configuration/Defaults/SleeperTest.php
@@ -21,7 +21,7 @@
*/
final class SleeperTest extends Framework\TestCase
{
- public function testSleeperSleepsLessThanDefaultMaximumDuration(): void
+ public function testSleeperSleepsLessThanDefaultMaximumDuration()
{
$milliseconds = 10;
@@ -35,7 +35,7 @@ public function testSleeperSleepsLessThanDefaultMaximumDuration(): void
/**
* @dataProvider provideMillisecondsGreaterThanDefaultMaximumDuration
*/
- public function testSleeperSleepsLongerThanDefaultMaximumDurationWithDataProvider(int $milliseconds): void
+ public function testSleeperSleepsLongerThanDefaultMaximumDurationWithDataProvider(int $milliseconds)
{
$sleeper = Test\Fixture\Sleeper::fromMilliseconds($milliseconds);
@@ -47,7 +47,7 @@ public function testSleeperSleepsLongerThanDefaultMaximumDurationWithDataProvide
/**
* @return \Generator
*/
- public static function provideMillisecondsGreaterThanDefaultMaximumDuration(): iterable
+ public static function provideMillisecondsGreaterThanDefaultMaximumDuration(): \Generator
{
$values = \range(
600,
diff --git a/test/EndToEnd/Version06/Configuration/MaximumCount/SleeperTest.php b/test/EndToEnd/Version06/Configuration/MaximumCount/SleeperTest.php
index f79ae379..06ce3846 100644
--- a/test/EndToEnd/Version06/Configuration/MaximumCount/SleeperTest.php
+++ b/test/EndToEnd/Version06/Configuration/MaximumCount/SleeperTest.php
@@ -21,7 +21,7 @@
*/
final class SleeperTest extends Framework\TestCase
{
- public function testSleeperSleepsLessThanDefaultMaximumDuration(): void
+ public function testSleeperSleepsLessThanDefaultMaximumDuration()
{
$milliseconds = 10;
@@ -35,7 +35,7 @@ public function testSleeperSleepsLessThanDefaultMaximumDuration(): void
/**
* @dataProvider provideMillisecondsGreaterThanDefaultMaximumDuration
*/
- public function testSleeperSleepsLongerThanDefaultMaximumDurationWithDataProvider(int $milliseconds): void
+ public function testSleeperSleepsLongerThanDefaultMaximumDurationWithDataProvider(int $milliseconds)
{
$sleeper = Test\Fixture\Sleeper::fromMilliseconds($milliseconds);
@@ -47,7 +47,7 @@ public function testSleeperSleepsLongerThanDefaultMaximumDurationWithDataProvide
/**
* @return \Generator
*/
- public static function provideMillisecondsGreaterThanDefaultMaximumDuration(): iterable
+ public static function provideMillisecondsGreaterThanDefaultMaximumDuration(): \Generator
{
$values = \range(
600,
diff --git a/test/EndToEnd/Version06/Configuration/MaximumDuration/SleeperTest.php b/test/EndToEnd/Version06/Configuration/MaximumDuration/SleeperTest.php
index ee6782ab..e981b729 100644
--- a/test/EndToEnd/Version06/Configuration/MaximumDuration/SleeperTest.php
+++ b/test/EndToEnd/Version06/Configuration/MaximumDuration/SleeperTest.php
@@ -21,7 +21,7 @@
*/
final class SleeperTest extends Framework\TestCase
{
- public function testSleeperSleepsLessThanMaximumDurationFromXmlConfiguration(): void
+ public function testSleeperSleepsLessThanMaximumDurationFromXmlConfiguration()
{
$milliseconds = 10;
@@ -35,7 +35,7 @@ public function testSleeperSleepsLessThanMaximumDurationFromXmlConfiguration():
/**
* @dataProvider provideMillisecondsGreaterThanMaximumDurationFromXmlConfiguration
*/
- public function testSleeperSleepsLongerThanMaximumDurationFromXmlConfigurationWithDataProvider(int $milliseconds): void
+ public function testSleeperSleepsLongerThanMaximumDurationFromXmlConfigurationWithDataProvider(int $milliseconds)
{
$sleeper = Test\Fixture\Sleeper::fromMilliseconds($milliseconds);
@@ -47,7 +47,7 @@ public function testSleeperSleepsLongerThanMaximumDurationFromXmlConfigurationWi
/**
* @return \Generator
*/
- public static function provideMillisecondsGreaterThanMaximumDurationFromXmlConfiguration(): iterable
+ public static function provideMillisecondsGreaterThanMaximumDurationFromXmlConfiguration(): \Generator
{
$values = \range(
200,
diff --git a/test/EndToEnd/Version06/TestCase/Bare/SleeperTest.php b/test/EndToEnd/Version06/TestCase/Bare/SleeperTest.php
index 3f1551bd..3cc703c4 100644
--- a/test/EndToEnd/Version06/TestCase/Bare/SleeperTest.php
+++ b/test/EndToEnd/Version06/TestCase/Bare/SleeperTest.php
@@ -21,7 +21,7 @@
*/
final class SleeperTest extends Framework\TestCase
{
- public function testSleeperSleepsLessThanMaximumDurationFromXmlConfiguration(): void
+ public function testSleeperSleepsLessThanMaximumDurationFromXmlConfiguration()
{
$milliseconds = 10;
@@ -35,7 +35,7 @@ public function testSleeperSleepsLessThanMaximumDurationFromXmlConfiguration():
/**
* @dataProvider provideMillisecondsGreaterThanMaximumDurationFromXmlConfiguration
*/
- public function testSleeperSleepsLongerThanMaximumDurationFromXmlConfigurationWithDataProvider(int $milliseconds): void
+ public function testSleeperSleepsLongerThanMaximumDurationFromXmlConfigurationWithDataProvider(int $milliseconds)
{
$sleeper = Test\Fixture\Sleeper::fromMilliseconds($milliseconds);
@@ -47,7 +47,7 @@ public function testSleeperSleepsLongerThanMaximumDurationFromXmlConfigurationWi
/**
* @return \Generator
*/
- public static function provideMillisecondsGreaterThanMaximumDurationFromXmlConfiguration(): iterable
+ public static function provideMillisecondsGreaterThanMaximumDurationFromXmlConfiguration(): \Generator
{
$values = \range(
200,
diff --git a/test/EndToEnd/Version06/TestCase/Combination/SleeperTest.php b/test/EndToEnd/Version06/TestCase/Combination/SleeperTest.php
index 0736d6bb..93ce08a1 100644
--- a/test/EndToEnd/Version06/TestCase/Combination/SleeperTest.php
+++ b/test/EndToEnd/Version06/TestCase/Combination/SleeperTest.php
@@ -21,32 +21,32 @@
*/
final class SleeperTest extends Framework\TestCase
{
- public static function setUpBeforeClass(): void
+ public static function setUpBeforeClass()
{
Test\Fixture\Sleeper::fromMilliseconds(100)->sleep();
}
- public static function tearDownAfterClass(): void
+ public static function tearDownAfterClass()
{
Test\Fixture\Sleeper::fromMilliseconds(100)->sleep();
}
- protected function setUp(): void
+ protected function setUp()
{
Test\Fixture\Sleeper::fromMilliseconds(100)->sleep();
}
- protected function assertPreConditions(): void
+ protected function assertPreConditions()
{
Test\Fixture\Sleeper::fromMilliseconds(100)->sleep();
}
- protected function assertPostConditions(): void
+ protected function assertPostConditions()
{
Test\Fixture\Sleeper::fromMilliseconds(100)->sleep();
}
- protected function tearDown(): void
+ protected function tearDown()
{
Test\Fixture\Sleeper::fromMilliseconds(100)->sleep();
}
@@ -54,7 +54,7 @@ protected function tearDown(): void
/**
* @before
*/
- public function sleepWithBeforeAnnotation(): void
+ public function sleepWithBeforeAnnotation()
{
Test\Fixture\Sleeper::fromMilliseconds(100)->sleep();
}
@@ -62,7 +62,7 @@ public function sleepWithBeforeAnnotation(): void
/**
* @beforeClass
*/
- public function sleepWithBeforeClassAnnotation(): void
+ public function sleepWithBeforeClassAnnotation()
{
Test\Fixture\Sleeper::fromMilliseconds(100)->sleep();
}
@@ -70,7 +70,7 @@ public function sleepWithBeforeClassAnnotation(): void
/**
* @after
*/
- public function sleepWithAfterAnnotation(): void
+ public function sleepWithAfterAnnotation()
{
Test\Fixture\Sleeper::fromMilliseconds(100)->sleep();
}
@@ -78,12 +78,12 @@ public function sleepWithAfterAnnotation(): void
/**
* @afterClass
*/
- public static function sleepWithAfterClassAnnotation(): void
+ public static function sleepWithAfterClassAnnotation()
{
Test\Fixture\Sleeper::fromMilliseconds(100)->sleep();
}
- public function testSleeperSleepsLessThanMaximumDurationFromXmlConfiguration(): void
+ public function testSleeperSleepsLessThanMaximumDurationFromXmlConfiguration()
{
$milliseconds = 10;
@@ -97,7 +97,7 @@ public function testSleeperSleepsLessThanMaximumDurationFromXmlConfiguration():
/**
* @dataProvider provideMillisecondsGreaterThanMaximumDurationFromXmlConfiguration
*/
- public function testSleeperSleepsLongerThanMaximumDurationFromXmlConfigurationWithDataProvider(int $milliseconds): void
+ public function testSleeperSleepsLongerThanMaximumDurationFromXmlConfigurationWithDataProvider(int $milliseconds)
{
$sleeper = Test\Fixture\Sleeper::fromMilliseconds($milliseconds);
@@ -109,7 +109,7 @@ public function testSleeperSleepsLongerThanMaximumDurationFromXmlConfigurationWi
/**
* @return \Generator
*/
- public static function provideMillisecondsGreaterThanMaximumDurationFromXmlConfiguration(): iterable
+ public static function provideMillisecondsGreaterThanMaximumDurationFromXmlConfiguration(): \Generator
{
$values = \range(
200,
diff --git a/test/EndToEnd/Version06/TestCase/WithAfterAnnotation/SleeperTest.php b/test/EndToEnd/Version06/TestCase/WithAfterAnnotation/SleeperTest.php
index 1eeac5f3..a4b1f4f6 100644
--- a/test/EndToEnd/Version06/TestCase/WithAfterAnnotation/SleeperTest.php
+++ b/test/EndToEnd/Version06/TestCase/WithAfterAnnotation/SleeperTest.php
@@ -24,12 +24,12 @@ final class SleeperTest extends Framework\TestCase
/**
* @after
*/
- public function sleepWithAfterAnnotation(): void
+ public function sleepWithAfterAnnotation()
{
Test\Fixture\Sleeper::fromMilliseconds(100)->sleep();
}
- public function testSleeperSleepsLessThanMaximumDurationFromXmlConfiguration(): void
+ public function testSleeperSleepsLessThanMaximumDurationFromXmlConfiguration()
{
$milliseconds = 10;
@@ -43,7 +43,7 @@ public function testSleeperSleepsLessThanMaximumDurationFromXmlConfiguration():
/**
* @dataProvider provideMillisecondsGreaterThanMaximumDurationFromXmlConfiguration
*/
- public function testSleeperSleepsLongerThanMaximumDurationFromXmlConfigurationWithDataProvider(int $milliseconds): void
+ public function testSleeperSleepsLongerThanMaximumDurationFromXmlConfigurationWithDataProvider(int $milliseconds)
{
$sleeper = Test\Fixture\Sleeper::fromMilliseconds($milliseconds);
@@ -55,7 +55,7 @@ public function testSleeperSleepsLongerThanMaximumDurationFromXmlConfigurationWi
/**
* @return \Generator
*/
- public static function provideMillisecondsGreaterThanMaximumDurationFromXmlConfiguration(): iterable
+ public static function provideMillisecondsGreaterThanMaximumDurationFromXmlConfiguration(): \Generator
{
$values = \range(
200,
diff --git a/test/EndToEnd/Version06/TestCase/WithAfterClassAnnotation/SleeperTest.php b/test/EndToEnd/Version06/TestCase/WithAfterClassAnnotation/SleeperTest.php
index 3c4dca25..dc28b449 100644
--- a/test/EndToEnd/Version06/TestCase/WithAfterClassAnnotation/SleeperTest.php
+++ b/test/EndToEnd/Version06/TestCase/WithAfterClassAnnotation/SleeperTest.php
@@ -24,12 +24,12 @@ final class SleeperTest extends Framework\TestCase
/**
* @afterClass
*/
- public static function sleepWithAfterClassAnnotation(): void
+ public static function sleepWithAfterClassAnnotation()
{
Test\Fixture\Sleeper::fromMilliseconds(100)->sleep();
}
- public function testSleeperSleepsLessThanMaximumDurationFromXmlConfiguration(): void
+ public function testSleeperSleepsLessThanMaximumDurationFromXmlConfiguration()
{
$milliseconds = 10;
@@ -43,7 +43,7 @@ public function testSleeperSleepsLessThanMaximumDurationFromXmlConfiguration():
/**
* @dataProvider provideMillisecondsGreaterThanMaximumDurationFromXmlConfiguration
*/
- public function testSleeperSleepsLongerThanMaximumDurationFromXmlConfigurationWithDataProvider(int $milliseconds): void
+ public function testSleeperSleepsLongerThanMaximumDurationFromXmlConfigurationWithDataProvider(int $milliseconds)
{
$sleeper = Test\Fixture\Sleeper::fromMilliseconds($milliseconds);
@@ -55,7 +55,7 @@ public function testSleeperSleepsLongerThanMaximumDurationFromXmlConfigurationWi
/**
* @return \Generator
*/
- public static function provideMillisecondsGreaterThanMaximumDurationFromXmlConfiguration(): iterable
+ public static function provideMillisecondsGreaterThanMaximumDurationFromXmlConfiguration(): \Generator
{
$values = \range(
200,
diff --git a/test/EndToEnd/Version06/TestCase/WithAssertPostConditions/SleeperTest.php b/test/EndToEnd/Version06/TestCase/WithAssertPostConditions/SleeperTest.php
index acf7c694..85a065bd 100644
--- a/test/EndToEnd/Version06/TestCase/WithAssertPostConditions/SleeperTest.php
+++ b/test/EndToEnd/Version06/TestCase/WithAssertPostConditions/SleeperTest.php
@@ -21,12 +21,12 @@
*/
final class SleeperTest extends Framework\TestCase
{
- protected function assertPostConditions(): void
+ protected function assertPostConditions()
{
Test\Fixture\Sleeper::fromMilliseconds(100)->sleep();
}
- public function testSleeperSleepsLessThanMaximumDurationFromXmlConfiguration(): void
+ public function testSleeperSleepsLessThanMaximumDurationFromXmlConfiguration()
{
$milliseconds = 10;
@@ -40,7 +40,7 @@ public function testSleeperSleepsLessThanMaximumDurationFromXmlConfiguration():
/**
* @dataProvider provideMillisecondsGreaterThanMaximumDurationFromXmlConfiguration
*/
- public function testSleeperSleepsLongerThanMaximumDurationFromXmlConfigurationWithDataProvider(int $milliseconds): void
+ public function testSleeperSleepsLongerThanMaximumDurationFromXmlConfigurationWithDataProvider(int $milliseconds)
{
$sleeper = Test\Fixture\Sleeper::fromMilliseconds($milliseconds);
@@ -52,7 +52,7 @@ public function testSleeperSleepsLongerThanMaximumDurationFromXmlConfigurationWi
/**
* @return \Generator
*/
- public static function provideMillisecondsGreaterThanMaximumDurationFromXmlConfiguration(): iterable
+ public static function provideMillisecondsGreaterThanMaximumDurationFromXmlConfiguration(): \Generator
{
$values = \range(
200,
diff --git a/test/EndToEnd/Version06/TestCase/WithAssertPreConditions/SleeperTest.php b/test/EndToEnd/Version06/TestCase/WithAssertPreConditions/SleeperTest.php
index beb36a74..773467ff 100644
--- a/test/EndToEnd/Version06/TestCase/WithAssertPreConditions/SleeperTest.php
+++ b/test/EndToEnd/Version06/TestCase/WithAssertPreConditions/SleeperTest.php
@@ -21,12 +21,12 @@
*/
final class SleeperTest extends Framework\TestCase
{
- protected function assertPreConditions(): void
+ protected function assertPreConditions()
{
Test\Fixture\Sleeper::fromMilliseconds(100)->sleep();
}
- public function testSleeperSleepsLessThanMaximumDurationFromXmlConfiguration(): void
+ public function testSleeperSleepsLessThanMaximumDurationFromXmlConfiguration()
{
$milliseconds = 10;
@@ -40,7 +40,7 @@ public function testSleeperSleepsLessThanMaximumDurationFromXmlConfiguration():
/**
* @dataProvider provideMillisecondsGreaterThanMaximumDurationFromXmlConfiguration
*/
- public function testSleeperSleepsLongerThanMaximumDurationFromXmlConfigurationWithDataProvider(int $milliseconds): void
+ public function testSleeperSleepsLongerThanMaximumDurationFromXmlConfigurationWithDataProvider(int $milliseconds)
{
$sleeper = Test\Fixture\Sleeper::fromMilliseconds($milliseconds);
@@ -52,7 +52,7 @@ public function testSleeperSleepsLongerThanMaximumDurationFromXmlConfigurationWi
/**
* @return \Generator
*/
- public static function provideMillisecondsGreaterThanMaximumDurationFromXmlConfiguration(): iterable
+ public static function provideMillisecondsGreaterThanMaximumDurationFromXmlConfiguration(): \Generator
{
$values = \range(
200,
diff --git a/test/EndToEnd/Version06/TestCase/WithBeforeAnnotation/SleeperTest.php b/test/EndToEnd/Version06/TestCase/WithBeforeAnnotation/SleeperTest.php
index 9d0a4598..ccb37f39 100644
--- a/test/EndToEnd/Version06/TestCase/WithBeforeAnnotation/SleeperTest.php
+++ b/test/EndToEnd/Version06/TestCase/WithBeforeAnnotation/SleeperTest.php
@@ -24,12 +24,12 @@ final class SleeperTest extends Framework\TestCase
/**
* @before
*/
- public function sleepWithBeforeAnnotation(): void
+ public function sleepWithBeforeAnnotation()
{
Test\Fixture\Sleeper::fromMilliseconds(100)->sleep();
}
- public function testSleeperSleepsLessThanMaximumDurationFromXmlConfiguration(): void
+ public function testSleeperSleepsLessThanMaximumDurationFromXmlConfiguration()
{
$milliseconds = 10;
@@ -43,7 +43,7 @@ public function testSleeperSleepsLessThanMaximumDurationFromXmlConfiguration():
/**
* @dataProvider provideMillisecondsGreaterThanMaximumDurationFromXmlConfiguration
*/
- public function testSleeperSleepsLongerThanMaximumDurationFromXmlConfigurationWithDataProvider(int $milliseconds): void
+ public function testSleeperSleepsLongerThanMaximumDurationFromXmlConfigurationWithDataProvider(int $milliseconds)
{
$sleeper = Test\Fixture\Sleeper::fromMilliseconds($milliseconds);
@@ -55,7 +55,7 @@ public function testSleeperSleepsLongerThanMaximumDurationFromXmlConfigurationWi
/**
* @return \Generator
*/
- public static function provideMillisecondsGreaterThanMaximumDurationFromXmlConfiguration(): iterable
+ public static function provideMillisecondsGreaterThanMaximumDurationFromXmlConfiguration(): \Generator
{
$values = \range(
200,
diff --git a/test/EndToEnd/Version06/TestCase/WithBeforeClassAnnotation/SleeperTest.php b/test/EndToEnd/Version06/TestCase/WithBeforeClassAnnotation/SleeperTest.php
index 5f2e4e43..c5b7fdee 100644
--- a/test/EndToEnd/Version06/TestCase/WithBeforeClassAnnotation/SleeperTest.php
+++ b/test/EndToEnd/Version06/TestCase/WithBeforeClassAnnotation/SleeperTest.php
@@ -24,12 +24,12 @@ final class SleeperTest extends Framework\TestCase
/**
* @beforeClass
*/
- public static function sleepWithBeforeClassAnnotation(): void
+ public static function sleepWithBeforeClassAnnotation()
{
Test\Fixture\Sleeper::fromMilliseconds(100)->sleep();
}
- public function testSleeperSleepsLessThanMaximumDurationFromXmlConfiguration(): void
+ public function testSleeperSleepsLessThanMaximumDurationFromXmlConfiguration()
{
$milliseconds = 10;
@@ -43,7 +43,7 @@ public function testSleeperSleepsLessThanMaximumDurationFromXmlConfiguration():
/**
* @dataProvider provideMillisecondsGreaterThanMaximumDurationFromXmlConfiguration
*/
- public function testSleeperSleepsLongerThanMaximumDurationFromXmlConfigurationWithDataProvider(int $milliseconds): void
+ public function testSleeperSleepsLongerThanMaximumDurationFromXmlConfigurationWithDataProvider(int $milliseconds)
{
$sleeper = Test\Fixture\Sleeper::fromMilliseconds($milliseconds);
@@ -55,7 +55,7 @@ public function testSleeperSleepsLongerThanMaximumDurationFromXmlConfigurationWi
/**
* @return \Generator
*/
- public static function provideMillisecondsGreaterThanMaximumDurationFromXmlConfiguration(): iterable
+ public static function provideMillisecondsGreaterThanMaximumDurationFromXmlConfiguration(): \Generator
{
$values = \range(
200,
diff --git a/test/EndToEnd/Version06/TestCase/WithDataProvider/SleeperTest.php b/test/EndToEnd/Version06/TestCase/WithDataProvider/SleeperTest.php
index 0a0fce82..f09e0a84 100644
--- a/test/EndToEnd/Version06/TestCase/WithDataProvider/SleeperTest.php
+++ b/test/EndToEnd/Version06/TestCase/WithDataProvider/SleeperTest.php
@@ -21,7 +21,7 @@
*/
final class SleeperTest extends Framework\TestCase
{
- public function testSleeperSleepsLessThanMaximumDurationFromXmlConfiguration(): void
+ public function testSleeperSleepsLessThanMaximumDurationFromXmlConfiguration()
{
$milliseconds = 10;
@@ -35,7 +35,7 @@ public function testSleeperSleepsLessThanMaximumDurationFromXmlConfiguration():
/**
* @dataProvider provideMillisecondsGreaterThanMaximumDurationFromXmlConfiguration
*/
- public function testSleeperSleepsLongerThanMaximumDurationFromXmlConfigurationWithDataProvider(int $milliseconds): void
+ public function testSleeperSleepsLongerThanMaximumDurationFromXmlConfigurationWithDataProvider(int $milliseconds)
{
$sleeper = Test\Fixture\Sleeper::fromMilliseconds($milliseconds);
@@ -47,7 +47,7 @@ public function testSleeperSleepsLongerThanMaximumDurationFromXmlConfigurationWi
/**
* @return \Generator
*/
- public static function provideMillisecondsGreaterThanMaximumDurationFromXmlConfiguration(): iterable
+ public static function provideMillisecondsGreaterThanMaximumDurationFromXmlConfiguration(): \Generator
{
$values = \range(
200,
diff --git a/test/EndToEnd/Version06/TestCase/WithSetUp/SleeperTest.php b/test/EndToEnd/Version06/TestCase/WithSetUp/SleeperTest.php
index d620535a..e11325fc 100644
--- a/test/EndToEnd/Version06/TestCase/WithSetUp/SleeperTest.php
+++ b/test/EndToEnd/Version06/TestCase/WithSetUp/SleeperTest.php
@@ -21,12 +21,12 @@
*/
final class SleeperTest extends Framework\TestCase
{
- protected function setUp(): void
+ protected function setUp()
{
Test\Fixture\Sleeper::fromMilliseconds(100)->sleep();
}
- public function testSleeperSleepsLessThanMaximumDurationFromXmlConfiguration(): void
+ public function testSleeperSleepsLessThanMaximumDurationFromXmlConfiguration()
{
$milliseconds = 10;
@@ -40,7 +40,7 @@ public function testSleeperSleepsLessThanMaximumDurationFromXmlConfiguration():
/**
* @dataProvider provideMillisecondsGreaterThanMaximumDurationFromXmlConfiguration
*/
- public function testSleeperSleepsLongerThanMaximumDurationFromXmlConfigurationWithDataProvider(int $milliseconds): void
+ public function testSleeperSleepsLongerThanMaximumDurationFromXmlConfigurationWithDataProvider(int $milliseconds)
{
$sleeper = Test\Fixture\Sleeper::fromMilliseconds($milliseconds);
@@ -52,7 +52,7 @@ public function testSleeperSleepsLongerThanMaximumDurationFromXmlConfigurationWi
/**
* @return \Generator
*/
- public static function provideMillisecondsGreaterThanMaximumDurationFromXmlConfiguration(): iterable
+ public static function provideMillisecondsGreaterThanMaximumDurationFromXmlConfiguration(): \Generator
{
$values = \range(
200,
diff --git a/test/EndToEnd/Version06/TestCase/WithSetUpBeforeClass/SleeperTest.php b/test/EndToEnd/Version06/TestCase/WithSetUpBeforeClass/SleeperTest.php
index 131288c9..e3d7d82b 100644
--- a/test/EndToEnd/Version06/TestCase/WithSetUpBeforeClass/SleeperTest.php
+++ b/test/EndToEnd/Version06/TestCase/WithSetUpBeforeClass/SleeperTest.php
@@ -21,12 +21,12 @@
*/
final class SleeperTest extends Framework\TestCase
{
- public static function setUpBeforeClass(): void
+ public static function setUpBeforeClass()
{
Test\Fixture\Sleeper::fromMilliseconds(100)->sleep();
}
- public function testSleeperSleepsLessThanMaximumDurationFromXmlConfiguration(): void
+ public function testSleeperSleepsLessThanMaximumDurationFromXmlConfiguration()
{
$milliseconds = 10;
@@ -40,7 +40,7 @@ public function testSleeperSleepsLessThanMaximumDurationFromXmlConfiguration():
/**
* @dataProvider provideMillisecondsGreaterThanMaximumDurationFromXmlConfiguration
*/
- public function testSleeperSleepsLongerThanMaximumDurationFromXmlConfigurationWithDataProvider(int $milliseconds): void
+ public function testSleeperSleepsLongerThanMaximumDurationFromXmlConfigurationWithDataProvider(int $milliseconds)
{
$sleeper = Test\Fixture\Sleeper::fromMilliseconds($milliseconds);
@@ -52,7 +52,7 @@ public function testSleeperSleepsLongerThanMaximumDurationFromXmlConfigurationWi
/**
* @return \Generator
*/
- public static function provideMillisecondsGreaterThanMaximumDurationFromXmlConfiguration(): iterable
+ public static function provideMillisecondsGreaterThanMaximumDurationFromXmlConfiguration(): \Generator
{
$values = \range(
200,
diff --git a/test/EndToEnd/Version06/TestCase/WithTearDown/SleeperTest.php b/test/EndToEnd/Version06/TestCase/WithTearDown/SleeperTest.php
index 935a88f3..aa3df511 100644
--- a/test/EndToEnd/Version06/TestCase/WithTearDown/SleeperTest.php
+++ b/test/EndToEnd/Version06/TestCase/WithTearDown/SleeperTest.php
@@ -21,12 +21,12 @@
*/
final class SleeperTest extends Framework\TestCase
{
- protected function tearDown(): void
+ protected function tearDown()
{
Test\Fixture\Sleeper::fromMilliseconds(100)->sleep();
}
- public function testSleeperSleepsLessThanMaximumDurationFromXmlConfiguration(): void
+ public function testSleeperSleepsLessThanMaximumDurationFromXmlConfiguration()
{
$milliseconds = 10;
@@ -40,7 +40,7 @@ public function testSleeperSleepsLessThanMaximumDurationFromXmlConfiguration():
/**
* @dataProvider provideMillisecondsGreaterThanMaximumDurationFromXmlConfiguration
*/
- public function testSleeperSleepsLongerThanMaximumDurationFromXmlConfigurationWithDataProvider(int $milliseconds): void
+ public function testSleeperSleepsLongerThanMaximumDurationFromXmlConfigurationWithDataProvider(int $milliseconds)
{
$sleeper = Test\Fixture\Sleeper::fromMilliseconds($milliseconds);
@@ -52,7 +52,7 @@ public function testSleeperSleepsLongerThanMaximumDurationFromXmlConfigurationWi
/**
* @return \Generator
*/
- public static function provideMillisecondsGreaterThanMaximumDurationFromXmlConfiguration(): iterable
+ public static function provideMillisecondsGreaterThanMaximumDurationFromXmlConfiguration(): \Generator
{
$values = \range(
200,
diff --git a/test/EndToEnd/Version06/TestCase/WithTearDownAfterClass/SleeperTest.php b/test/EndToEnd/Version06/TestCase/WithTearDownAfterClass/SleeperTest.php
index 16294e0d..350571d8 100644
--- a/test/EndToEnd/Version06/TestCase/WithTearDownAfterClass/SleeperTest.php
+++ b/test/EndToEnd/Version06/TestCase/WithTearDownAfterClass/SleeperTest.php
@@ -21,12 +21,12 @@
*/
final class SleeperTest extends Framework\TestCase
{
- public static function tearDownAfterClass(): void
+ public static function tearDownAfterClass()
{
Test\Fixture\Sleeper::fromMilliseconds(100)->sleep();
}
- public function testSleeperSleepsLessThanMaximumDurationFromXmlConfiguration(): void
+ public function testSleeperSleepsLessThanMaximumDurationFromXmlConfiguration()
{
$milliseconds = 10;
@@ -40,7 +40,7 @@ public function testSleeperSleepsLessThanMaximumDurationFromXmlConfiguration():
/**
* @dataProvider provideMillisecondsGreaterThanMaximumDurationFromXmlConfiguration
*/
- public function testSleeperSleepsLongerThanMaximumDurationFromXmlConfigurationWithDataProvider(int $milliseconds): void
+ public function testSleeperSleepsLongerThanMaximumDurationFromXmlConfigurationWithDataProvider(int $milliseconds)
{
$sleeper = Test\Fixture\Sleeper::fromMilliseconds($milliseconds);
@@ -52,7 +52,7 @@ public function testSleeperSleepsLongerThanMaximumDurationFromXmlConfigurationWi
/**
* @return \Generator
*/
- public static function provideMillisecondsGreaterThanMaximumDurationFromXmlConfiguration(): iterable
+ public static function provideMillisecondsGreaterThanMaximumDurationFromXmlConfiguration(): \Generator
{
$values = \range(
200,
diff --git a/test/EndToEnd/Version06/TestMethod/WithMaximumDurationAndSlowThresholdAnnotations/SleeperTest.php b/test/EndToEnd/Version06/TestMethod/WithMaximumDurationAndSlowThresholdAnnotations/SleeperTest.php
index b34f99a0..8998c43b 100644
--- a/test/EndToEnd/Version06/TestMethod/WithMaximumDurationAndSlowThresholdAnnotations/SleeperTest.php
+++ b/test/EndToEnd/Version06/TestMethod/WithMaximumDurationAndSlowThresholdAnnotations/SleeperTest.php
@@ -26,7 +26,7 @@ final class SleeperTest extends Framework\TestCase
*
* @slowThreshold 400
*/
- public function testSleeperSleepsShorterThanMaximumDurationFromAnnotationWhenTestMethodHasMaximumDurationAndSlowThresholdAnnotations(): void
+ public function testSleeperSleepsShorterThanMaximumDurationFromAnnotationWhenTestMethodHasMaximumDurationAndSlowThresholdAnnotations()
{
$milliseconds = 50;
@@ -42,7 +42,7 @@ public function testSleeperSleepsShorterThanMaximumDurationFromAnnotationWhenTes
*
* @slowThreshold 400
*/
- public function testSleeperSleepsLongerThanMaximumDurationFromAnnotationWhenTestMethodHasMaximumDurationAndSlowThresholdAnnotations(): void
+ public function testSleeperSleepsLongerThanMaximumDurationFromAnnotationWhenTestMethodHasMaximumDurationAndSlowThresholdAnnotations()
{
$milliseconds = 300;
diff --git a/test/EndToEnd/Version06/TestMethod/WithMaximumDurationAnnotation/SleeperTest.php b/test/EndToEnd/Version06/TestMethod/WithMaximumDurationAnnotation/SleeperTest.php
index 1b0e682f..a4bd0826 100644
--- a/test/EndToEnd/Version06/TestMethod/WithMaximumDurationAnnotation/SleeperTest.php
+++ b/test/EndToEnd/Version06/TestMethod/WithMaximumDurationAnnotation/SleeperTest.php
@@ -24,7 +24,7 @@ final class SleeperTest extends Framework\TestCase
/**
* @maximumDuration 3.14
*/
- public function testSleeperSleepsShorterThanMaximumDurationFromXmlConfigurationWhenTestMethodHasInvalidMaximumDurationAnnotation(): void
+ public function testSleeperSleepsShorterThanMaximumDurationFromXmlConfigurationWhenTestMethodHasInvalidMaximumDurationAnnotation()
{
$milliseconds = 10;
@@ -38,7 +38,7 @@ public function testSleeperSleepsShorterThanMaximumDurationFromXmlConfigurationW
/**
* @maximumDuration 3.14
*/
- public function testSleeperSleepsLongerThanMaximumDurationFromXmlConfigurationWhenTestMethodHasInvalidMaximumDurationAnnotation(): void
+ public function testSleeperSleepsLongerThanMaximumDurationFromXmlConfigurationWhenTestMethodHasInvalidMaximumDurationAnnotation()
{
$milliseconds = 200;
@@ -52,7 +52,7 @@ public function testSleeperSleepsLongerThanMaximumDurationFromXmlConfigurationWh
/**
* @maximumDuration 200
*/
- public function testSleeperSleepsShorterThanMaximumDurationFromAnnotationWhenTestMethodHasValidMaximumDurationAnnotation(): void
+ public function testSleeperSleepsShorterThanMaximumDurationFromAnnotationWhenTestMethodHasValidMaximumDurationAnnotation()
{
$milliseconds = 10;
@@ -66,7 +66,7 @@ public function testSleeperSleepsShorterThanMaximumDurationFromAnnotationWhenTes
/**
* @maximumDuration 200
*/
- public function testSleeperSleepsLongerThanMaximumDurationFromAnnotationWhenTestMethodHasValidMaximumDurationAnnotation(): void
+ public function testSleeperSleepsLongerThanMaximumDurationFromAnnotationWhenTestMethodHasValidMaximumDurationAnnotation()
{
$milliseconds = 300;
diff --git a/test/EndToEnd/Version06/TestMethod/WithRunInSeparateProcessAnnotation/SleeperTest.php b/test/EndToEnd/Version06/TestMethod/WithRunInSeparateProcessAnnotation/SleeperTest.php
index 37bca345..9e2f8345 100644
--- a/test/EndToEnd/Version06/TestMethod/WithRunInSeparateProcessAnnotation/SleeperTest.php
+++ b/test/EndToEnd/Version06/TestMethod/WithRunInSeparateProcessAnnotation/SleeperTest.php
@@ -21,32 +21,32 @@
*/
final class SleeperTest extends Framework\TestCase
{
- public static function setUpBeforeClass(): void
+ public static function setUpBeforeClass()
{
Test\Fixture\Sleeper::fromMilliseconds(100)->sleep();
}
- public static function tearDownAfterClass(): void
+ public static function tearDownAfterClass()
{
Test\Fixture\Sleeper::fromMilliseconds(100)->sleep();
}
- protected function setUp(): void
+ protected function setUp()
{
Test\Fixture\Sleeper::fromMilliseconds(100)->sleep();
}
- protected function assertPreConditions(): void
+ protected function assertPreConditions()
{
Test\Fixture\Sleeper::fromMilliseconds(100)->sleep();
}
- protected function assertPostConditions(): void
+ protected function assertPostConditions()
{
Test\Fixture\Sleeper::fromMilliseconds(100)->sleep();
}
- protected function tearDown(): void
+ protected function tearDown()
{
Test\Fixture\Sleeper::fromMilliseconds(100)->sleep();
}
@@ -54,7 +54,7 @@ protected function tearDown(): void
/**
* @before
*/
- public function sleepWithBeforeAnnotation(): void
+ public function sleepWithBeforeAnnotation()
{
Test\Fixture\Sleeper::fromMilliseconds(100)->sleep();
}
@@ -62,7 +62,7 @@ public function sleepWithBeforeAnnotation(): void
/**
* @beforeClass
*/
- public static function sleepWithBeforeClassAnnotation(): void
+ public static function sleepWithBeforeClassAnnotation()
{
Test\Fixture\Sleeper::fromMilliseconds(100)->sleep();
}
@@ -70,7 +70,7 @@ public static function sleepWithBeforeClassAnnotation(): void
/**
* @after
*/
- public function sleepWithAfterAnnotation(): void
+ public function sleepWithAfterAnnotation()
{
Test\Fixture\Sleeper::fromMilliseconds(100)->sleep();
}
@@ -78,12 +78,12 @@ public function sleepWithAfterAnnotation(): void
/**
* @afterClass
*/
- public static function sleepWithAfterClassAnnotation(): void
+ public static function sleepWithAfterClassAnnotation()
{
Test\Fixture\Sleeper::fromMilliseconds(100)->sleep();
}
- public function testSleeperSleepsShorterThanMaximumDurationFromXmlConfiguration(): void
+ public function testSleeperSleepsShorterThanMaximumDurationFromXmlConfiguration()
{
$milliseconds = 10;
@@ -97,7 +97,7 @@ public function testSleeperSleepsShorterThanMaximumDurationFromXmlConfiguration(
/**
* @runInSeparateProcess
*/
- public function testSleeperSleepsShorterThanMaximumDurationFromXmlConfigurationWhenMethodHasRunInSeparateProcessAnnotation(): void
+ public function testSleeperSleepsShorterThanMaximumDurationFromXmlConfigurationWhenMethodHasRunInSeparateProcessAnnotation()
{
$milliseconds = 50;
@@ -108,7 +108,7 @@ public function testSleeperSleepsShorterThanMaximumDurationFromXmlConfigurationW
self::assertSame($milliseconds, $sleeper->milliseconds());
}
- public function testSleeperSleepsLongerThanMaximumDurationFromXmlConfiguration(): void
+ public function testSleeperSleepsLongerThanMaximumDurationFromXmlConfiguration()
{
$milliseconds = 200;
@@ -122,7 +122,7 @@ public function testSleeperSleepsLongerThanMaximumDurationFromXmlConfiguration()
/**
* @runInSeparateProcess
*/
- public function testSleeperSleepsLongerThanMaximumDurationFromXmlConfigurationWhenMethodHasRunInSeparateProcessAnnotation(): void
+ public function testSleeperSleepsLongerThanMaximumDurationFromXmlConfigurationWhenMethodHasRunInSeparateProcessAnnotation()
{
$milliseconds = 300;
diff --git a/test/EndToEnd/Version06/TestMethod/WithSlowThresholdAndMaximumDurationAnnotations/SleeperTest.php b/test/EndToEnd/Version06/TestMethod/WithSlowThresholdAndMaximumDurationAnnotations/SleeperTest.php
index ed0949f4..c934ab09 100644
--- a/test/EndToEnd/Version06/TestMethod/WithSlowThresholdAndMaximumDurationAnnotations/SleeperTest.php
+++ b/test/EndToEnd/Version06/TestMethod/WithSlowThresholdAndMaximumDurationAnnotations/SleeperTest.php
@@ -26,7 +26,7 @@ final class SleeperTest extends Framework\TestCase
*
* @maximumDuration 200
*/
- public function testSleeperSleepsShorterThanMaximumDurationFromAnnotationWhenTestMethodHasMaximumDurationAndSlowThresholdAnnotations(): void
+ public function testSleeperSleepsShorterThanMaximumDurationFromAnnotationWhenTestMethodHasMaximumDurationAndSlowThresholdAnnotations()
{
$milliseconds = 50;
@@ -42,7 +42,7 @@ public function testSleeperSleepsShorterThanMaximumDurationFromAnnotationWhenTes
*
* @maximumDuration 200
*/
- public function testSleeperSleepsLongerThanMaximumDurationFromAnnotationWhenTestMethodHasMaximumDurationAndSlowThresholdAnnotations(): void
+ public function testSleeperSleepsLongerThanMaximumDurationFromAnnotationWhenTestMethodHasMaximumDurationAndSlowThresholdAnnotations()
{
$milliseconds = 300;
diff --git a/test/EndToEnd/Version06/TestMethod/WithSlowThresholdAnnotation/SleeperTest.php b/test/EndToEnd/Version06/TestMethod/WithSlowThresholdAnnotation/SleeperTest.php
index 18de8faa..a59a46f3 100644
--- a/test/EndToEnd/Version06/TestMethod/WithSlowThresholdAnnotation/SleeperTest.php
+++ b/test/EndToEnd/Version06/TestMethod/WithSlowThresholdAnnotation/SleeperTest.php
@@ -26,7 +26,7 @@ final class SleeperTest extends Framework\TestCase
*
* @see https://github.com/johnkary/phpunit-speedtrap/blob/1.0/src/JohnKary/PHPUnit/Listener/SpeedTrapListener.php#L309-L331
*/
- public function testSleeperSleepsShorterThanMaximumDurationFromXmlConfigurationWhenTestMethodHasInvalidSlowThresholdAnnotation(): void
+ public function testSleeperSleepsShorterThanMaximumDurationFromXmlConfigurationWhenTestMethodHasInvalidSlowThresholdAnnotation()
{
$milliseconds = 10;
@@ -42,7 +42,7 @@ public function testSleeperSleepsShorterThanMaximumDurationFromXmlConfigurationW
*
* @see https://github.com/johnkary/phpunit-speedtrap/blob/1.0/src/JohnKary/PHPUnit/Listener/SpeedTrapListener.php#L309-L331
*/
- public function testSleeperSleepsLongerThanMaximumDurationFromXmlConfigurationWhenTestMethodHasInvalidSlowThresholdAnnotation(): void
+ public function testSleeperSleepsLongerThanMaximumDurationFromXmlConfigurationWhenTestMethodHasInvalidSlowThresholdAnnotation()
{
$milliseconds = 200;
@@ -58,7 +58,7 @@ public function testSleeperSleepsLongerThanMaximumDurationFromXmlConfigurationWh
*
* @see https://github.com/johnkary/phpunit-speedtrap/blob/1.0/src/JohnKary/PHPUnit/Listener/SpeedTrapListener.php#L309-L331
*/
- public function testSleeperSleepsShorterThanSlowThresholdFromAnnotationWhenTestMethodHasValidSlowThresholdAnnotation(): void
+ public function testSleeperSleepsShorterThanSlowThresholdFromAnnotationWhenTestMethodHasValidSlowThresholdAnnotation()
{
$milliseconds = 10;
@@ -74,7 +74,7 @@ public function testSleeperSleepsShorterThanSlowThresholdFromAnnotationWhenTestM
*
* @see https://github.com/johnkary/phpunit-speedtrap/blob/1.0/src/JohnKary/PHPUnit/Listener/SpeedTrapListener.php#L309-L331
*/
- public function testSleeperSleepsLongerThanSlowThresholdFromAnnotationWhenTestMethodHasValidSlowThresholdAnnotation(): void
+ public function testSleeperSleepsLongerThanSlowThresholdFromAnnotationWhenTestMethodHasValidSlowThresholdAnnotation()
{
$milliseconds = 300;
diff --git a/test/Unit/Attribute/MaximumDurationTest.php b/test/Unit/Attribute/MaximumDurationTest.php
index fe4f85ed..2855f838 100644
--- a/test/Unit/Attribute/MaximumDurationTest.php
+++ b/test/Unit/Attribute/MaximumDurationTest.php
@@ -32,14 +32,14 @@ final class MaximumDurationTest extends Framework\TestCase
* @dataProvider \Ergebnis\PHPUnit\SlowTestDetector\Test\DataProvider\IntProvider::lessThanZero
* @dataProvider \Ergebnis\PHPUnit\SlowTestDetector\Test\DataProvider\IntProvider::zero
*/
- public function testConstructorRejectsInvalidValue(int $milliseconds): void
+ public function testConstructorRejectsInvalidValue(int $milliseconds)
{
$this->expectException(Exception\InvalidMilliseconds::class);
new Attribute\MaximumDuration($milliseconds);
}
- public function testConstructorSetsValue(): void
+ public function testConstructorSetsValue()
{
$milliseconds = self::faker()->numberBetween(1);
diff --git a/test/Unit/Collector/DefaultCollectorTest.php b/test/Unit/Collector/DefaultCollectorTest.php
index b5e9ab4f..a086b662 100644
--- a/test/Unit/Collector/DefaultCollectorTest.php
+++ b/test/Unit/Collector/DefaultCollectorTest.php
@@ -31,7 +31,7 @@ final class DefaultCollectorTest extends Framework\TestCase
{
use Test\Util\Helper;
- public function testCollectCollectsSlowTests(): void
+ public function testCollectCollectsSlowTests()
{
$faker = self::faker()->unique();
@@ -60,7 +60,7 @@ public function testCollectCollectsSlowTests(): void
self::assertSame($expected, $collector->collected());
}
- public function testCollectCollectsSlowerTestWithSameTestIdentifier(): void
+ public function testCollectCollectsSlowerTestWithSameTestIdentifier()
{
$faker = self::faker();
@@ -91,7 +91,7 @@ public function testCollectCollectsSlowerTestWithSameTestIdentifier(): void
self::assertSame($expected, $collector->collected());
}
- public function testCollectDoesNotCollectFasterTestWithSameTestIdentifier(): void
+ public function testCollectDoesNotCollectFasterTestWithSameTestIdentifier()
{
$faker = self::faker();
diff --git a/test/Unit/Comparator/DurationComparatorTest.php b/test/Unit/Comparator/DurationComparatorTest.php
index 0ca97ea0..13b6f088 100644
--- a/test/Unit/Comparator/DurationComparatorTest.php
+++ b/test/Unit/Comparator/DurationComparatorTest.php
@@ -24,7 +24,7 @@
*/
final class DurationComparatorTest extends Framework\TestCase
{
- public function testReturnsMinusOneWhenOneIsLessThanTwo(): void
+ public function testReturnsMinusOneWhenOneIsLessThanTwo()
{
$one = Duration::fromSecondsAndNanoseconds(
5,
@@ -41,7 +41,7 @@ public function testReturnsMinusOneWhenOneIsLessThanTwo(): void
self::assertSame(-1, $comparator->compare($one, $two));
}
- public function testReturnsZeroWhenOneEqualsTwo(): void
+ public function testReturnsZeroWhenOneEqualsTwo()
{
$one = Duration::fromSecondsAndNanoseconds(
5,
@@ -58,7 +58,7 @@ public function testReturnsZeroWhenOneEqualsTwo(): void
self::assertSame(0, $comparator->compare($one, $two));
}
- public function testReturnsPlusOneWhenOneIsGreaterThanTwo(): void
+ public function testReturnsPlusOneWhenOneIsGreaterThanTwo()
{
$one = Duration::fromSecondsAndNanoseconds(
5,
diff --git a/test/Unit/Console/ColorTest.php b/test/Unit/Console/ColorTest.php
index 80e5d7a8..7649c939 100644
--- a/test/Unit/Console/ColorTest.php
+++ b/test/Unit/Console/ColorTest.php
@@ -29,12 +29,12 @@ final class ColorTest extends Framework\TestCase
* @dataProvider \Ergebnis\PHPUnit\SlowTestDetector\Test\DataProvider\StringProvider::blank
* @dataProvider \Ergebnis\PHPUnit\SlowTestDetector\Test\DataProvider\StringProvider::empty
*/
- public function testDimReturnsOriginalStringWhenItIsWhitespaceOnly(string $output): void
+ public function testDimReturnsOriginalStringWhenItIsWhitespaceOnly(string $output)
{
self::assertSame($output, Console\Color::dim($output));
}
- public function testDimReturnsDimmedStringWhenItIsNotWhitespaceOnly(): void
+ public function testDimReturnsDimmedStringWhenItIsNotWhitespaceOnly()
{
$output = self::faker()->sentence();
diff --git a/test/Unit/CountTest.php b/test/Unit/CountTest.php
index 8a46c3f5..94eb3e3f 100644
--- a/test/Unit/CountTest.php
+++ b/test/Unit/CountTest.php
@@ -29,7 +29,7 @@ final class CountTest extends Framework\TestCase
* @dataProvider \Ergebnis\PHPUnit\SlowTestDetector\Test\DataProvider\IntProvider::lessThanZero
* @dataProvider \Ergebnis\PHPUnit\SlowTestDetector\Test\DataProvider\IntProvider::zero
*/
- public function testFromIntRejectsInvalidValue(int $value): void
+ public function testFromIntRejectsInvalidValue(int $value)
{
$this->expectException(Exception\InvalidCount::class);
@@ -39,7 +39,7 @@ public function testFromIntRejectsInvalidValue(int $value): void
/**
* @dataProvider \Ergebnis\PHPUnit\SlowTestDetector\Test\DataProvider\IntProvider::greaterThanZero
*/
- public function testFromIntReturnsCount(int $value): void
+ public function testFromIntReturnsCount(int $value)
{
$count = Count::fromInt($value);
diff --git a/test/Unit/DurationTest.php b/test/Unit/DurationTest.php
index c705f055..95256ff8 100644
--- a/test/Unit/DurationTest.php
+++ b/test/Unit/DurationTest.php
@@ -33,7 +33,7 @@ final class DurationTest extends Framework\TestCase
/**
* @dataProvider \Ergebnis\PHPUnit\SlowTestDetector\Test\DataProvider\IntProvider::lessThanZero
*/
- public function testFromSecondsAndNanosecondsRejectsSecondsLessThanZero(int $seconds): void
+ public function testFromSecondsAndNanosecondsRejectsSecondsLessThanZero(int $seconds)
{
$nanoseconds = self::faker()->numberBetween(0, 999999999);
@@ -48,7 +48,7 @@ public function testFromSecondsAndNanosecondsRejectsSecondsLessThanZero(int $sec
/**
* @dataProvider \Ergebnis\PHPUnit\SlowTestDetector\Test\DataProvider\IntProvider::lessThanZero
*/
- public function testFromSecondsAndNanosecondsRejectsNanosecondsLessThanZero(int $nanoseconds): void
+ public function testFromSecondsAndNanosecondsRejectsNanosecondsLessThanZero(int $nanoseconds)
{
$seconds = self::faker()->numberBetween(0, 123);
@@ -63,7 +63,7 @@ public function testFromSecondsAndNanosecondsRejectsNanosecondsLessThanZero(int
/**
* @dataProvider \Ergebnis\PHPUnit\SlowTestDetector\Test\DataProvider\IntProvider::greaterThanOne
*/
- public function testFromSecondsAndNanosecondsRejectsNanosecondsGreaterThan999999999(int $offset): void
+ public function testFromSecondsAndNanosecondsRejectsNanosecondsGreaterThan999999999(int $offset)
{
$seconds = self::faker()->numberBetween(0, 123);
$nanoseconds = 999999999 + $offset;
@@ -76,7 +76,7 @@ public function testFromSecondsAndNanosecondsRejectsNanosecondsGreaterThan999999
);
}
- public function testFromSecondsAndNanosecondsReturnsDuration(): void
+ public function testFromSecondsAndNanosecondsReturnsDuration()
{
$faker = self::faker();
@@ -95,7 +95,7 @@ public function testFromSecondsAndNanosecondsReturnsDuration(): void
/**
* @dataProvider \Ergebnis\PHPUnit\SlowTestDetector\Test\DataProvider\IntProvider::lessThanZero
*/
- public function testFromMillisecondsRejectsInvalidValue(int $milliseconds): void
+ public function testFromMillisecondsRejectsInvalidValue(int $milliseconds)
{
$this->expectException(Exception\InvalidMilliseconds::class);
@@ -109,7 +109,7 @@ public function testFromMillisecondsReturnsDuration(
int $milliseconds,
int $seconds,
int $nanoseconds
- ): void {
+ ) {
$duration = Duration::fromMilliseconds($milliseconds);
self::assertSame($seconds, $duration->seconds());
@@ -149,7 +149,7 @@ public static function provideMillisecondsSecondsAndNanoseconds(): iterable
],
];
- foreach ($values as $key => [$milliseconds, $seconds, $nanoseconds]) {
+ foreach ($values as $key => list($milliseconds, $seconds, $nanoseconds)) {
yield $key => [
$milliseconds,
$seconds,
@@ -165,7 +165,7 @@ public function testAddReturnsDuration(
Duration $one,
Duration $two,
Duration $three
- ): void {
+ ) {
self::assertEquals($three, $one->add($two));
}
@@ -201,7 +201,7 @@ public static function provideDurationDurationAndResultOfAddingDurations(): iter
],
];
- foreach ($values as $key => [$one, $two, $three]) {
+ foreach ($values as $key => list($one, $two, $three)) {
yield $key => [
$one,
$two,
@@ -210,7 +210,7 @@ public static function provideDurationDurationAndResultOfAddingDurations(): iter
}
}
- public function testIsLessThanReturnsFalseWhenSecondsAreGreater(): void
+ public function testIsLessThanReturnsFalseWhenSecondsAreGreater()
{
$one = Duration::fromSecondsAndNanoseconds(
123,
@@ -225,7 +225,7 @@ public function testIsLessThanReturnsFalseWhenSecondsAreGreater(): void
self::assertFalse($one->isLessThan($two));
}
- public function testIsLessThanReturnsFalseWhenSecondsAreEqualAndNanosecondsAreGreater(): void
+ public function testIsLessThanReturnsFalseWhenSecondsAreEqualAndNanosecondsAreGreater()
{
$one = Duration::fromSecondsAndNanoseconds(
123,
@@ -240,7 +240,7 @@ public function testIsLessThanReturnsFalseWhenSecondsAreEqualAndNanosecondsAreGr
self::assertFalse($one->isLessThan($two));
}
- public function testIsLessThanReturnsFalseWhenValuesAreSame(): void
+ public function testIsLessThanReturnsFalseWhenValuesAreSame()
{
$one = Duration::fromSecondsAndNanoseconds(
123,
@@ -255,7 +255,7 @@ public function testIsLessThanReturnsFalseWhenValuesAreSame(): void
self::assertFalse($one->isLessThan($two));
}
- public function testIsLessThanReturnsTrueWhenSecondsAreLess(): void
+ public function testIsLessThanReturnsTrueWhenSecondsAreLess()
{
$one = Duration::fromSecondsAndNanoseconds(
123,
@@ -270,7 +270,7 @@ public function testIsLessThanReturnsTrueWhenSecondsAreLess(): void
self::assertTrue($one->isLessThan($two));
}
- public function testIsLessThanReturnsTrueWhenSecondsAreEqualAndNanosecondsAreLess(): void
+ public function testIsLessThanReturnsTrueWhenSecondsAreEqualAndNanosecondsAreLess()
{
$one = Duration::fromSecondsAndNanoseconds(
123,
@@ -285,7 +285,7 @@ public function testIsLessThanReturnsTrueWhenSecondsAreEqualAndNanosecondsAreLes
self::assertTrue($one->isLessThan($two));
}
- public function testIsGreaterThanReturnsFalseWhenSecondsAreLess(): void
+ public function testIsGreaterThanReturnsFalseWhenSecondsAreLess()
{
$one = Duration::fromSecondsAndNanoseconds(
123,
@@ -300,7 +300,7 @@ public function testIsGreaterThanReturnsFalseWhenSecondsAreLess(): void
self::assertFalse($one->isGreaterThan($two));
}
- public function testIsGreaterThanReturnsFalseWhenSecondsAreEqualAndNanosecondsAreLess(): void
+ public function testIsGreaterThanReturnsFalseWhenSecondsAreEqualAndNanosecondsAreLess()
{
$one = Duration::fromSecondsAndNanoseconds(
123,
@@ -315,7 +315,7 @@ public function testIsGreaterThanReturnsFalseWhenSecondsAreEqualAndNanosecondsAr
self::assertFalse($one->isGreaterThan($two));
}
- public function testIsGreaterThanReturnsFalseWhenValuesAreSame(): void
+ public function testIsGreaterThanReturnsFalseWhenValuesAreSame()
{
$one = Duration::fromSecondsAndNanoseconds(
123,
@@ -330,7 +330,7 @@ public function testIsGreaterThanReturnsFalseWhenValuesAreSame(): void
self::assertFalse($one->isGreaterThan($two));
}
- public function testIsGreaterThanReturnsTrueWhenSecondsAreGreater(): void
+ public function testIsGreaterThanReturnsTrueWhenSecondsAreGreater()
{
$one = Duration::fromSecondsAndNanoseconds(
123,
@@ -345,7 +345,7 @@ public function testIsGreaterThanReturnsTrueWhenSecondsAreGreater(): void
self::assertTrue($one->isGreaterThan($two));
}
- public function testIsGreaterThanReturnsTrueWhenSecondsAreEqualAndNanosecondsAreGreater(): void
+ public function testIsGreaterThanReturnsTrueWhenSecondsAreEqualAndNanosecondsAreGreater()
{
$one = Duration::fromSecondsAndNanoseconds(
123,
diff --git a/test/Unit/Exception/InvalidCountTest.php b/test/Unit/Exception/InvalidCountTest.php
index c5de9dc1..f854bd30 100644
--- a/test/Unit/Exception/InvalidCountTest.php
+++ b/test/Unit/Exception/InvalidCountTest.php
@@ -24,7 +24,7 @@ final class InvalidCountTest extends Framework\TestCase
{
use Test\Util\Helper;
- public function testNotGreaterThanZeroReturnsException(): void
+ public function testNotGreaterThanZeroReturnsException()
{
$value = self::faker()->numberBetween();
diff --git a/test/Unit/Exception/InvalidMillisecondsTest.php b/test/Unit/Exception/InvalidMillisecondsTest.php
index 4d6c5840..a8baf059 100644
--- a/test/Unit/Exception/InvalidMillisecondsTest.php
+++ b/test/Unit/Exception/InvalidMillisecondsTest.php
@@ -24,7 +24,7 @@ final class InvalidMillisecondsTest extends Framework\TestCase
{
use Test\Util\Helper;
- public function testNotGreaterThanZeroReturnsException(): void
+ public function testNotGreaterThanZeroReturnsException()
{
$value = self::faker()->numberBetween();
diff --git a/test/Unit/Exception/InvalidNanosecondsTest.php b/test/Unit/Exception/InvalidNanosecondsTest.php
index 69d6005b..59691b08 100644
--- a/test/Unit/Exception/InvalidNanosecondsTest.php
+++ b/test/Unit/Exception/InvalidNanosecondsTest.php
@@ -24,7 +24,7 @@ final class InvalidNanosecondsTest extends Framework\TestCase
{
use Test\Util\Helper;
- public function testNotGreaterThanOrEqualToZeroReturnsException(): void
+ public function testNotGreaterThanOrEqualToZeroReturnsException()
{
$value = self::faker()->numberBetween();
@@ -38,7 +38,7 @@ public function testNotGreaterThanOrEqualToZeroReturnsException(): void
self::assertSame($message, $exception->getMessage());
}
- public function testNotLessThanOrEqualToReturnsException(): void
+ public function testNotLessThanOrEqualToReturnsException()
{
$faker = self::faker();
diff --git a/test/Unit/Exception/InvalidPhaseIdentifierTest.php b/test/Unit/Exception/InvalidPhaseIdentifierTest.php
index b36045a7..85caa6d8 100644
--- a/test/Unit/Exception/InvalidPhaseIdentifierTest.php
+++ b/test/Unit/Exception/InvalidPhaseIdentifierTest.php
@@ -21,7 +21,7 @@
*/
final class InvalidPhaseIdentifierTest extends Framework\TestCase
{
- public function testBlankOrEmptyReturnsException(): void
+ public function testBlankOrEmptyReturnsException()
{
$exception = Exception\InvalidPhaseIdentifier::blankOrEmpty();
diff --git a/test/Unit/Exception/InvalidSecondsTest.php b/test/Unit/Exception/InvalidSecondsTest.php
index 6ca2c8fd..54b42678 100644
--- a/test/Unit/Exception/InvalidSecondsTest.php
+++ b/test/Unit/Exception/InvalidSecondsTest.php
@@ -24,7 +24,7 @@ final class InvalidSecondsTest extends Framework\TestCase
{
use Test\Util\Helper;
- public function testNotGreaterThanZeroReturnsException(): void
+ public function testNotGreaterThanZeroReturnsException()
{
$value = self::faker()->numberBetween();
@@ -38,7 +38,7 @@ public function testNotGreaterThanZeroReturnsException(): void
self::assertSame($message, $exception->getMessage());
}
- public function testNotGreaterThanOrEqualToZeroReturnsException(): void
+ public function testNotGreaterThanOrEqualToZeroReturnsException()
{
$value = self::faker()->numberBetween();
diff --git a/test/Unit/Exception/InvalidStartTest.php b/test/Unit/Exception/InvalidStartTest.php
index 68ebba44..9350c6da 100644
--- a/test/Unit/Exception/InvalidStartTest.php
+++ b/test/Unit/Exception/InvalidStartTest.php
@@ -21,7 +21,7 @@
*/
final class InvalidStartTest extends Framework\TestCase
{
- public function testNotLessThanOrEqualToEndReturnsException(): void
+ public function testNotLessThanOrEqualToEndReturnsException()
{
$exception = Exception\InvalidStart::notLessThanOrEqualToEnd();
diff --git a/test/Unit/Exception/InvalidTestIdentifierTest.php b/test/Unit/Exception/InvalidTestIdentifierTest.php
index e211988d..304e94bf 100644
--- a/test/Unit/Exception/InvalidTestIdentifierTest.php
+++ b/test/Unit/Exception/InvalidTestIdentifierTest.php
@@ -21,7 +21,7 @@
*/
final class InvalidTestIdentifierTest extends Framework\TestCase
{
- public function testBlankOrEmptyReturnsException(): void
+ public function testBlankOrEmptyReturnsException()
{
$exception = Exception\InvalidTestIdentifier::blankOrEmpty();
diff --git a/test/Unit/Exception/PhaseNotStartedTest.php b/test/Unit/Exception/PhaseNotStartedTest.php
index f39e8697..17967e9f 100644
--- a/test/Unit/Exception/PhaseNotStartedTest.php
+++ b/test/Unit/Exception/PhaseNotStartedTest.php
@@ -27,7 +27,7 @@ final class PhaseNotStartedTest extends Framework\TestCase
{
use Test\Util\Helper;
- public function testFromPhaseIdentifierReturnsException(): void
+ public function testFromPhaseIdentifierReturnsException()
{
$phaseIdentifier = PhaseIdentifier::fromString(self::faker()->word());
diff --git a/test/Unit/Formatter/DefaultDurationFormatterTest.php b/test/Unit/Formatter/DefaultDurationFormatterTest.php
index 785f99d4..2b1ead9d 100644
--- a/test/Unit/Formatter/DefaultDurationFormatterTest.php
+++ b/test/Unit/Formatter/DefaultDurationFormatterTest.php
@@ -30,7 +30,7 @@ final class DefaultDurationFormatterTest extends Framework\TestCase
public function testFormatFormats(
Duration $duration,
string $formattedDuration
- ): void {
+ ) {
$formatter = new Formatter\DefaultDurationFormatter();
self::assertSame($formattedDuration, $formatter->format($duration));
@@ -100,7 +100,7 @@ public static function provideDurationAndFormattedDuration(): iterable
],
];
- foreach ($values as $key => [$duration, $formattedDuration]) {
+ foreach ($values as $key => list($duration, $formattedDuration)) {
yield $key => [
$duration,
$formattedDuration,
diff --git a/test/Unit/PhaseIdentifierTest.php b/test/Unit/PhaseIdentifierTest.php
index c1ed6657..32c28b7d 100644
--- a/test/Unit/PhaseIdentifierTest.php
+++ b/test/Unit/PhaseIdentifierTest.php
@@ -32,14 +32,14 @@ final class PhaseIdentifierTest extends Framework\TestCase
* @dataProvider \Ergebnis\PHPUnit\SlowTestDetector\Test\DataProvider\StringProvider::blank
* @dataProvider \Ergebnis\PHPUnit\SlowTestDetector\Test\DataProvider\StringProvider::empty
*/
- public function testFromStringRejectsInvalidValue(string $value): void
+ public function testFromStringRejectsInvalidValue(string $value)
{
$this->expectException(Exception\InvalidPhaseIdentifier::class);
PhaseIdentifier::fromString($value);
}
- public function testFromStringReturnsPhaseIdentifier(): void
+ public function testFromStringReturnsPhaseIdentifier()
{
$value = self::faker()->word();
diff --git a/test/Unit/PhaseStartTest.php b/test/Unit/PhaseStartTest.php
index 54b4e527..09f3016a 100644
--- a/test/Unit/PhaseStartTest.php
+++ b/test/Unit/PhaseStartTest.php
@@ -29,7 +29,7 @@ final class PhaseStartTest extends Framework\TestCase
{
use Test\Util\Helper;
- public function testCreateReturnsPhaseStart(): void
+ public function testCreateReturnsPhaseStart()
{
$faker = self::faker();
diff --git a/test/Unit/PhaseTest.php b/test/Unit/PhaseTest.php
index d5771a11..a39db7b0 100644
--- a/test/Unit/PhaseTest.php
+++ b/test/Unit/PhaseTest.php
@@ -31,7 +31,7 @@ final class PhaseTest extends Framework\TestCase
{
use Test\Util\Helper;
- public function testCreateReturnsPhase(): void
+ public function testCreateReturnsPhase()
{
$faker = self::faker();
diff --git a/test/Unit/Reporter/DefaultReporterTest.php b/test/Unit/Reporter/DefaultReporterTest.php
index 82d1a728..93556144 100644
--- a/test/Unit/Reporter/DefaultReporterTest.php
+++ b/test/Unit/Reporter/DefaultReporterTest.php
@@ -36,7 +36,7 @@ final class DefaultReporterTest extends Framework\TestCase
{
use Test\Util\Helper;
- public function testReportReturnsEmptyStringWhenThereAreNoSlowTests(): void
+ public function testReportReturnsEmptyStringWhenThereAreNoSlowTests()
{
$faker = self::faker();
@@ -61,7 +61,7 @@ public function testReportReturnsReportWhenThereAreFewerSlowTestsThanMaximumCoun
Duration $maximumDuration,
Count $maximumCount,
array $slowTests
- ): void {
+ ) {
$reporter = new Reporter\DefaultReporter(
new Formatter\DefaultDurationFormatter(),
$maximumDuration,
@@ -303,7 +303,7 @@ public static function provideExpectedReportMaximumDurationMaximumCountAndSlowTe
],
];
- foreach ($values as $key => [$expected, $maximumDuration, $maximumCount, $slowTests]) {
+ foreach ($values as $key => list($expected, $maximumDuration, $maximumCount, $slowTests)) {
yield $key => [
$expected,
$maximumDuration,
diff --git a/test/Unit/SlowTestTest.php b/test/Unit/SlowTestTest.php
index 3f491540..e0c83782 100644
--- a/test/Unit/SlowTestTest.php
+++ b/test/Unit/SlowTestTest.php
@@ -29,7 +29,7 @@ final class SlowTestTest extends Framework\TestCase
{
use Test\Util\Helper;
- public function testCreateReturnsSlowTest(): void
+ public function testCreateReturnsSlowTest()
{
$faker = self::faker();
diff --git a/test/Unit/TestIdentifierTest.php b/test/Unit/TestIdentifierTest.php
index 12cab224..cfa327c7 100644
--- a/test/Unit/TestIdentifierTest.php
+++ b/test/Unit/TestIdentifierTest.php
@@ -32,14 +32,14 @@ final class TestIdentifierTest extends Framework\TestCase
* @dataProvider \Ergebnis\PHPUnit\SlowTestDetector\Test\DataProvider\StringProvider::blank
* @dataProvider \Ergebnis\PHPUnit\SlowTestDetector\Test\DataProvider\StringProvider::empty
*/
- public function testFromStringRejectsInvalidValue(string $value): void
+ public function testFromStringRejectsInvalidValue(string $value)
{
$this->expectException(Exception\InvalidTestIdentifier::class);
TestIdentifier::fromString($value);
}
- public function testFromStringReturnsTestIdentifier(): void
+ public function testFromStringReturnsTestIdentifier()
{
$value = self::faker()->word();
diff --git a/test/Unit/TimeKeeperTest.php b/test/Unit/TimeKeeperTest.php
index 97117dcd..ea115c37 100644
--- a/test/Unit/TimeKeeperTest.php
+++ b/test/Unit/TimeKeeperTest.php
@@ -34,7 +34,7 @@ final class TimeKeeperTest extends Framework\TestCase
{
use Test\Util\Helper;
- public function testStopThrowsPhaseNotStartedExceptionWhenPhaseHasNotBeenStarted(): void
+ public function testStopThrowsPhaseNotStartedExceptionWhenPhaseHasNotBeenStarted()
{
$faker = self::faker();
@@ -54,7 +54,7 @@ public function testStopThrowsPhaseNotStartedExceptionWhenPhaseHasNotBeenStarted
);
}
- public function testStopReturnsPhaseWhenPhaseHasBeenStarted(): void
+ public function testStopReturnsPhaseWhenPhaseHasBeenStarted()
{
$faker = self::faker();
diff --git a/test/Unit/TimeTest.php b/test/Unit/TimeTest.php
index bb25e755..de930c19 100644
--- a/test/Unit/TimeTest.php
+++ b/test/Unit/TimeTest.php
@@ -31,7 +31,7 @@ final class TimeTest extends Framework\TestCase
{
use Test\Util\Helper;
- public function testFromSecondsAndNanosecondsRejectsNegativeSeconds(): void
+ public function testFromSecondsAndNanosecondsRejectsNegativeSeconds()
{
$this->expectException(Exception\InvalidSeconds::class);
@@ -41,7 +41,7 @@ public function testFromSecondsAndNanosecondsRejectsNegativeSeconds(): void
);
}
- public function testFromSecondsAndNanosecondsRejectsNegativeNanoseconds(): void
+ public function testFromSecondsAndNanosecondsRejectsNegativeNanoseconds()
{
$this->expectException(Exception\InvalidNanoseconds::class);
@@ -51,7 +51,7 @@ public function testFromSecondsAndNanosecondsRejectsNegativeNanoseconds(): void
);
}
- public function testFromSecondsAndNanosecondsRejectsNanosecondsGreaterThan999999999(): void
+ public function testFromSecondsAndNanosecondsRejectsNanosecondsGreaterThan999999999()
{
$this->expectException(Exception\InvalidNanoseconds::class);
@@ -61,7 +61,7 @@ public function testFromSecondsAndNanosecondsRejectsNanosecondsGreaterThan999999
);
}
- public function testFromSecondsAndNanosecondsReturnsTime(): void
+ public function testFromSecondsAndNanosecondsReturnsTime()
{
$faker = self::faker();
@@ -85,7 +85,7 @@ public function testDurationRejectsStartGreaterThanEnd(
int $startNanoseconds,
int $endSeconds,
int $endNanoseconds
- ): void {
+ ) {
$start = Time::fromSecondsAndNanoseconds(
$startSeconds,
$startNanoseconds
@@ -127,7 +127,7 @@ public static function provideStartGreaterThanEnd(): iterable
],
];
- foreach ($values as $key => [$startSeconds, $startNanoseconds, $endSeconds, $endNanoseconds]) {
+ foreach ($values as $key => list($startSeconds, $startNanoseconds, $endSeconds, $endNanoseconds)) {
yield $key => [
$startSeconds,
$startNanoseconds,
@@ -146,7 +146,7 @@ public function testDurationReturnsDifferenceBetweenEndAndStart(
int $endSeconds,
int $endNanoseconds,
Duration $duration
- ): void {
+ ) {
$start = Time::fromSecondsAndNanoseconds(
$startSeconds,
$startNanoseconds
@@ -198,7 +198,7 @@ public static function provideStartEndAndDuration(): iterable
],
];
- foreach ($values as $key => [$startSeconds, $startNanoseconds, $endSeconds, $endNanoseconds, $duration]) {
+ foreach ($values as $key => list($startSeconds, $startNanoseconds, $endSeconds, $endNanoseconds, $duration)) {
yield $key => [
$startSeconds,
$startNanoseconds,
diff --git a/test/Unit/Version/MajorTest.php b/test/Unit/Version/MajorTest.php
index d96d64e2..35717eba 100644
--- a/test/Unit/Version/MajorTest.php
+++ b/test/Unit/Version/MajorTest.php
@@ -28,7 +28,7 @@ final class MajorTest extends Framework\TestCase
/**
* @dataProvider \Ergebnis\PHPUnit\SlowTestDetector\Test\DataProvider\IntProvider::lessThanZero
*/
- public function testFromIntRejectsInvalidValue(int $value): void
+ public function testFromIntRejectsInvalidValue(int $value)
{
$this->expectException(\InvalidArgumentException::class);
$this->expectExceptionMessage(\sprintf(
@@ -43,14 +43,14 @@ public function testFromIntRejectsInvalidValue(int $value): void
* @dataProvider \Ergebnis\PHPUnit\SlowTestDetector\Test\DataProvider\IntProvider::greaterThanZero
* @dataProvider \Ergebnis\PHPUnit\SlowTestDetector\Test\DataProvider\IntProvider::zero
*/
- public function testFromStringReturnsMajor(int $value): void
+ public function testFromStringReturnsMajor(int $value)
{
$major = Version\Major::fromInt($value);
self::assertSame($value, $major->toInt());
}
- public function testEqualsReturnsFalseWhenValueIsDifferent(): void
+ public function testEqualsReturnsFalseWhenValueIsDifferent()
{
$faker = self::faker()->unique();
@@ -60,7 +60,7 @@ public function testEqualsReturnsFalseWhenValueIsDifferent(): void
self::assertFalse($one->equals($two));
}
- public function testEqualsReturnsTrueWhenValueIsSame(): void
+ public function testEqualsReturnsTrueWhenValueIsSame()
{
$value = self::faker()->numberBetween(0);
@@ -70,7 +70,7 @@ public function testEqualsReturnsTrueWhenValueIsSame(): void
self::assertTrue($one->equals($two));
}
- public function testIsOneOfReturnsFalseWhenAllValuesAreDifferent(): void
+ public function testIsOneOfReturnsFalseWhenAllValuesAreDifferent()
{
$faker = self::faker()->unique();
@@ -81,7 +81,7 @@ public function testIsOneOfReturnsFalseWhenAllValuesAreDifferent(): void
self::assertFalse($one->isOneOf($two, $three));
}
- public function testIsOneOfReturnsTrueWhenOneOfTheValuesIsSame(): void
+ public function testIsOneOfReturnsTrueWhenOneOfTheValuesIsSame()
{
$faker = self::faker()->unique();
diff --git a/test/Unit/Version/SeriesTest.php b/test/Unit/Version/SeriesTest.php
index 94cc3063..e572d923 100644
--- a/test/Unit/Version/SeriesTest.php
+++ b/test/Unit/Version/SeriesTest.php
@@ -27,7 +27,7 @@ final class SeriesTest extends Framework\TestCase
{
use Test\Util\Helper;
- public function testCreateReturnsSeries(): void
+ public function testCreateReturnsSeries()
{
$major = Version\Major::fromInt(self::faker()->numberBetween(0));
@@ -40,7 +40,7 @@ public function testCreateReturnsSeries(): void
* @dataProvider \Ergebnis\PHPUnit\SlowTestDetector\Test\DataProvider\StringProvider::arbitrary
* @dataProvider provideInvalidValue
*/
- public function testFromStringRejectsInvalidValue(string $value): void
+ public function testFromStringRejectsInvalidValue(string $value)
{
$this->expectException(\InvalidArgumentException::class);
$this->expectExceptionMessage(\sprintf(
@@ -170,7 +170,7 @@ public static function provideInvalidValue(): iterable
public function testFromStringReturnsSeries(
string $value,
Version\Major $major
- ): void {
+ ) {
$series = Version\Series::fromString($value);
self::assertEquals($major, $series->major());
@@ -196,7 +196,7 @@ public static function provideValidValueAndMajor(): iterable
],
];
- foreach ($values as $key => [$value, $major]) {
+ foreach ($values as $key => list($value, $major)) {
yield $key => [
$value,
$major,