From 8a174aa0a44b06b8d0a5fb9b0a6d278a4f065bfd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=B6ller?= Date: Sun, 7 Apr 2024 17:31:29 +0200 Subject: [PATCH] Enhancement: Add support for PHP 7.2 --- .github/settings.yml | 4 + .github/workflows/integrate.yaml | 9 +++ .php-cs-fixer.php | 2 +- CHANGELOG.md | 5 ++ composer.json | 2 +- composer.lock | 4 +- rector.php | 2 +- src/Duration.php | 12 +-- src/Exception/InvalidCount.php | 2 +- src/Exception/InvalidMilliseconds.php | 2 +- src/Exception/InvalidNanoseconds.php | 4 +- src/Exception/InvalidSeconds.php | 4 +- src/Exception/PhaseNotStarted.php | 2 +- src/Extension.php | 22 +++--- src/Formatter/DefaultDurationFormatter.php | 6 +- src/Phase.php | 2 +- src/PhaseStart.php | 2 +- src/Reporter/DefaultReporter.php | 18 ++--- src/SlowTest.php | 2 +- src/Subscriber/Test/FinishedSubscriber.php | 10 +-- .../Test/PreparationStartedSubscriber.php | 4 +- src/Time.php | 6 +- src/TimeKeeper.php | 4 +- src/Version/Major.php | 2 +- src/Version/Series.php | 2 +- test/DataProvider/StringProvider.php | 22 +++--- .../Configuration/Defaults/SleeperTest.php | 2 +- .../MaximumCount/SleeperTest.php | 2 +- .../MaximumDuration/SleeperTest.php | 2 +- .../Version07/TestCase/Bare/SleeperTest.php | 2 +- .../TestCase/Combination/SleeperTest.php | 2 +- .../WithAfterAnnotation/SleeperTest.php | 2 +- .../WithAfterClassAnnotation/SleeperTest.php | 2 +- .../WithAssertPostConditions/SleeperTest.php | 2 +- .../WithAssertPreConditions/SleeperTest.php | 2 +- .../WithBeforeAnnotation/SleeperTest.php | 2 +- .../WithBeforeClassAnnotation/SleeperTest.php | 2 +- .../TestCase/WithDataProvider/SleeperTest.php | 2 +- .../TestCase/WithSetUp/SleeperTest.php | 2 +- .../WithSetUpBeforeClass/SleeperTest.php | 2 +- .../TestCase/WithTearDown/SleeperTest.php | 2 +- .../WithTearDownAfterClass/SleeperTest.php | 2 +- .../Configuration/Defaults/SleeperTest.php | 2 +- .../MaximumCount/SleeperTest.php | 2 +- .../MaximumDuration/SleeperTest.php | 2 +- .../Version08/TestCase/Bare/SleeperTest.php | 2 +- .../TestCase/Combination/SleeperTest.php | 2 +- .../WithAfterAnnotation/SleeperTest.php | 2 +- .../WithAfterClassAnnotation/SleeperTest.php | 2 +- .../WithAssertPostConditions/SleeperTest.php | 2 +- .../WithAssertPreConditions/SleeperTest.php | 2 +- .../WithBeforeAnnotation/SleeperTest.php | 2 +- .../WithBeforeClassAnnotation/SleeperTest.php | 2 +- .../TestCase/WithDataProvider/SleeperTest.php | 2 +- .../TestCase/WithSetUp/SleeperTest.php | 2 +- .../WithSetUpBeforeClass/SleeperTest.php | 2 +- .../TestCase/WithTearDown/SleeperTest.php | 2 +- .../WithTearDownAfterClass/SleeperTest.php | 2 +- .../Configuration/Defaults/SleeperTest.php | 2 +- .../MaximumCount/SleeperTest.php | 2 +- .../MaximumDuration/SleeperTest.php | 2 +- .../Version09/TestCase/Bare/SleeperTest.php | 2 +- .../TestCase/Combination/SleeperTest.php | 2 +- .../WithAfterAnnotation/SleeperTest.php | 2 +- .../WithAfterClassAnnotation/SleeperTest.php | 2 +- .../WithAssertPostConditions/SleeperTest.php | 2 +- .../WithAssertPreConditions/SleeperTest.php | 2 +- .../WithBeforeAnnotation/SleeperTest.php | 2 +- .../WithBeforeClassAnnotation/SleeperTest.php | 2 +- .../TestCase/WithDataProvider/SleeperTest.php | 2 +- .../TestCase/WithSetUp/SleeperTest.php | 2 +- .../WithSetUpBeforeClass/SleeperTest.php | 2 +- .../TestCase/WithTearDown/SleeperTest.php | 2 +- .../WithTearDownAfterClass/SleeperTest.php | 2 +- .../Configuration/Defaults/SleeperTest.php | 2 +- .../MaximumCount/SleeperTest.php | 2 +- .../MaximumDuration/SleeperTest.php | 2 +- .../Version10/TestCase/Bare/SleeperTest.php | 2 +- .../TestCase/Combination/SleeperTest.php | 2 +- .../WithAfterAnnotation/SleeperTest.php | 2 +- .../WithAfterAttribute/SleeperTest.php | 2 +- .../WithAfterClassAnnotation/SleeperTest.php | 2 +- .../WithAfterClassAttribute/SleeperTest.php | 2 +- .../WithAssertPostConditions/SleeperTest.php | 2 +- .../WithAssertPreConditions/SleeperTest.php | 2 +- .../WithBeforeAnnotation/SleeperTest.php | 2 +- .../WithBeforeAttribute/SleeperTest.php | 2 +- .../WithBeforeClassAnnotation/SleeperTest.php | 2 +- .../WithBeforeClassAttribute/SleeperTest.php | 2 +- .../TestCase/WithDataProvider/SleeperTest.php | 2 +- .../TestCase/WithSetUp/SleeperTest.php | 2 +- .../WithSetUpBeforeClass/SleeperTest.php | 2 +- .../TestCase/WithTearDown/SleeperTest.php | 2 +- .../WithTearDownAfterClass/SleeperTest.php | 2 +- .../Configuration/Defaults/SleeperTest.php | 2 +- .../MaximumCount/SleeperTest.php | 2 +- .../MaximumDuration/SleeperTest.php | 2 +- .../Version11/TestCase/Bare/SleeperTest.php | 2 +- .../TestCase/Combination/SleeperTest.php | 2 +- .../WithAfterAttribute/SleeperTest.php | 2 +- .../WithAfterClassAttribute/SleeperTest.php | 2 +- .../WithAssertPostConditions/SleeperTest.php | 2 +- .../WithAssertPreConditions/SleeperTest.php | 2 +- .../WithBeforeAttribute/SleeperTest.php | 2 +- .../WithBeforeClassAttribute/SleeperTest.php | 2 +- .../TestCase/WithDataProvider/SleeperTest.php | 2 +- .../TestCase/WithSetUp/SleeperTest.php | 2 +- .../WithSetUpBeforeClass/SleeperTest.php | 2 +- .../TestCase/WithTearDown/SleeperTest.php | 2 +- .../WithTearDownAfterClass/SleeperTest.php | 2 +- test/Fixture/Sleeper.php | 2 +- test/Unit/Collector/DefaultCollectorTest.php | 16 ++-- .../Comparator/DurationComparatorTest.php | 12 +-- test/Unit/Console/ColorTest.php | 1 + test/Unit/DurationTest.php | 54 +++++++------- test/Unit/Exception/InvalidCountTest.php | 2 +- .../Exception/InvalidMillisecondsTest.php | 2 +- .../Unit/Exception/InvalidNanosecondsTest.php | 6 +- test/Unit/Exception/InvalidSecondsTest.php | 4 +- test/Unit/Exception/PhaseNotStartedTest.php | 2 +- .../DefaultDurationFormatterTest.php | 16 ++-- test/Unit/PhaseStartTest.php | 4 +- test/Unit/PhaseTest.php | 6 +- test/Unit/Reporter/DefaultReporterTest.php | 73 ++++++++++--------- test/Unit/SlowTestTest.php | 2 +- test/Unit/TimeKeeperTest.php | 12 +-- test/Unit/TimeTest.php | 22 +++--- test/Unit/Version/MajorTest.php | 2 +- test/Unit/Version/SeriesTest.php | 14 ++-- 129 files changed, 301 insertions(+), 275 deletions(-) diff --git a/.github/settings.yml b/.github/settings.yml index 2dbe0eeb..37a05a84 100644 --- a/.github/settings.yml +++ b/.github/settings.yml @@ -21,10 +21,14 @@ branches: - context: "Refactoring (7.4, locked)" - context: "Security Analysis (7.4, locked)" - context: "Static Code Analysis (7.4, locked)" + - context: "Tests (7.5.0, 7.2, highest)" + - context: "Tests (7.5.0, 7.2, lowest)" - context: "Tests (7.5.0, 7.3, highest)" - context: "Tests (7.5.0, 7.3, lowest)" - context: "Tests (7.5.0, 7.4, highest)" - context: "Tests (7.5.0, 7.4, lowest)" + - context: "Tests (8.5.19, 7.2, highest)" + - context: "Tests (8.5.19, 7.2, lowest)" - context: "Tests (8.5.19, 7.3, highest)" - context: "Tests (8.5.19, 7.3, lowest)" - context: "Tests (8.5.19, 7.4, highest)" diff --git a/.github/workflows/integrate.yaml b/.github/workflows/integrate.yaml index ce67cc76..c1e72724 100644 --- a/.github/workflows/integrate.yaml +++ b/.github/workflows/integrate.yaml @@ -460,6 +460,7 @@ jobs: - "7.5.0" php-version: + - "7.2" - "7.3" - "7.4" @@ -468,6 +469,14 @@ jobs: - "highest" include: + - phpunit-version: "8.5.19" + php-version: "7.2" + dependencies: "lowest" + + - phpunit-version: "8.5.19" + php-version: "7.2" + dependencies: "highest" + - phpunit-version: "8.5.19" php-version: "7.3" dependencies: "lowest" diff --git a/.php-cs-fixer.php b/.php-cs-fixer.php index bb6d0272..5c38171a 100644 --- a/.php-cs-fixer.php +++ b/.php-cs-fixer.php @@ -26,7 +26,7 @@ $license->save(); -$ruleSet = PhpCsFixer\Config\RuleSet\Php73::create() +$ruleSet = PhpCsFixer\Config\RuleSet\Php72::create() ->withHeader($license->header()) ->withRules(PhpCsFixer\Config\Rules::fromArray([ 'mb_str_functions' => false, diff --git a/CHANGELOG.md b/CHANGELOG.md index 4733c333..6e4f597a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), For a full diff see [`2.11.0...main`][2.11.0...main]. +### Changed + +- Added support for PHP 7.2 ([#531]), by [@localheinz] + ## [`2.11.0`][2.11.0] For a full diff see [`2.10.0...2.11.0`][2.10.0...2.11.0]. @@ -291,6 +295,7 @@ For a full diff see [`7afa59c...1.0.0`][7afa59c...1.0.0]. [#491]: https://github.com/ergebnis/phpunit-slow-test-detector/pull/491 [#494]: https://github.com/ergebnis/phpunit-slow-test-detector/pull/494 [#495]: https://github.com/ergebnis/phpunit-slow-test-detector/pull/495 +[#531]: https://github.com/ergebnis/phpunit-slow-test-detector/pull/531 [@HypeMC]: https://github.com/HypeMC [@localheinz]: https://github.com/localheinz diff --git a/composer.json b/composer.json index 4c22e181..715d1e81 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.3.0 || ~7.4.0 || ~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0", + "php": "~7.2.0 || ~7.3.0 || ~7.4.0 || ~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0", "phpunit/phpunit": "^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 878811c2..8ee242dc 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": "9e54ff2ffdd11af6817f2f85e1da6aa4", + "content-hash": "36edfea5c4debe50cb7a9fabf2bfc285", "packages": [ { "name": "doctrine/instantiator", @@ -5566,7 +5566,7 @@ "prefer-stable": true, "prefer-lowest": false, "platform": { - "php": "~7.3.0 || ~7.4.0 || ~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0" + "php": "~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/rector.php b/rector.php index a3730081..323c7578 100644 --- a/rector.php +++ b/rector.php @@ -23,5 +23,5 @@ __DIR__ . '/test/', ]); - $rectorConfig->phpVersion(ValueObject\PhpVersion::PHP_73); + $rectorConfig->phpVersion(ValueObject\PhpVersion::PHP_72); }; diff --git a/src/Duration.php b/src/Duration.php index 5f73bd93..5c7f356e 100644 --- a/src/Duration.php +++ b/src/Duration.php @@ -57,13 +57,13 @@ public static function fromSecondsAndNanoseconds( if ($maxNanoseconds < $nanoseconds) { throw Exception\InvalidNanoseconds::notLessThanOrEqualTo( $nanoseconds, - $maxNanoseconds, + $maxNanoseconds ); } return new self( $seconds, - $nanoseconds, + $nanoseconds ); } @@ -78,14 +78,14 @@ public static function fromMilliseconds(int $milliseconds): self $seconds = \intdiv( $milliseconds, - 1000, + 1000 ); $nanoseconds = ($milliseconds - $seconds * 1000) * 1000000; return new self( $seconds, - $nanoseconds, + $nanoseconds ); } @@ -107,13 +107,13 @@ public function add(self $other): self if (999999999 < $nanoseconds) { return new self( $seconds + 1, - $nanoseconds - 1000000000, + $nanoseconds - 1000000000 ); } return new self( $seconds, - $nanoseconds, + $nanoseconds ); } diff --git a/src/Exception/InvalidCount.php b/src/Exception/InvalidCount.php index ec6c0e5a..60a78764 100644 --- a/src/Exception/InvalidCount.php +++ b/src/Exception/InvalidCount.php @@ -22,7 +22,7 @@ public static function notGreaterThanZero(int $value): self { return new self(\sprintf( 'Value should be greater than 0, but %d is not.', - $value, + $value )); } } diff --git a/src/Exception/InvalidMilliseconds.php b/src/Exception/InvalidMilliseconds.php index a3b76a77..28e7c157 100644 --- a/src/Exception/InvalidMilliseconds.php +++ b/src/Exception/InvalidMilliseconds.php @@ -22,7 +22,7 @@ public static function notGreaterThanZero(int $value): self { return new self(\sprintf( 'Value should be greater than 0, but %d is not.', - $value, + $value )); } } diff --git a/src/Exception/InvalidNanoseconds.php b/src/Exception/InvalidNanoseconds.php index 87231f4f..d0885a77 100644 --- a/src/Exception/InvalidNanoseconds.php +++ b/src/Exception/InvalidNanoseconds.php @@ -22,7 +22,7 @@ public static function notGreaterThanOrEqualToZero(int $value): self { return new self(\sprintf( 'Value should be greater than or equal to 0, but %d is not.', - $value, + $value )); } @@ -33,7 +33,7 @@ public static function notLessThanOrEqualTo( return new self(\sprintf( 'Value should be less than or equal to %d, but %d is not.', $two, - $one, + $one )); } } diff --git a/src/Exception/InvalidSeconds.php b/src/Exception/InvalidSeconds.php index 8be5311b..9cd4b17b 100644 --- a/src/Exception/InvalidSeconds.php +++ b/src/Exception/InvalidSeconds.php @@ -22,7 +22,7 @@ public static function notGreaterThanZero(int $value): self { return new self(\sprintf( 'Value should be greater than 0, but %d is not.', - $value, + $value )); } @@ -30,7 +30,7 @@ public static function notGreaterThanOrEqualToZero(int $value): self { return new self(\sprintf( 'Value should be greater than or equal to 0, but %d is not.', - $value, + $value )); } } diff --git a/src/Exception/PhaseNotStarted.php b/src/Exception/PhaseNotStarted.php index c181564b..37294f3e 100644 --- a/src/Exception/PhaseNotStarted.php +++ b/src/Exception/PhaseNotStarted.php @@ -24,7 +24,7 @@ public static function fromPhaseIdentifier(PhaseIdentifier $phaseIdentifier): se { return new self(\sprintf( 'Phase identified by "%s" has not been started.', - $phaseIdentifier->toString(), + $phaseIdentifier->toString() )); } } diff --git a/src/Extension.php b/src/Extension.php index 12646b0f..3a3973a0 100644 --- a/src/Extension.php +++ b/src/Extension.php @@ -22,7 +22,7 @@ } catch (\InvalidArgumentException $exception) { throw new \RuntimeException(\sprintf( 'Unable to determine PHPUnit version from version series "%s".', - Runner\Version::series(), + Runner\Version::series() )); } @@ -75,7 +75,7 @@ public function __construct(array $options = []) $this->reporter = new Reporter\DefaultReporter( new Formatter\DefaultDurationFormatter(), $maximumDuration, - $maximumCount, + $maximumCount ); } @@ -105,7 +105,7 @@ public function executeAfterTest( $duration = Duration::fromSecondsAndNanoseconds( $seconds, - $nanoseconds, + $nanoseconds ); $maximumDuration = $this->resolveMaximumDuration($test); @@ -119,7 +119,7 @@ public function executeAfterTest( $slowTest = SlowTest::create( $testIdentifier, $duration, - $maximumDuration, + $maximumDuration ); $this->collector->collect($slowTest); @@ -156,7 +156,7 @@ private function resolveMaximumDuration(string $test): Duration { [$testClassName, $testMethodName] = \explode( '::', - $test, + $test ); $annotations = [ @@ -166,7 +166,7 @@ private function resolveMaximumDuration(string $test): Duration $symbolAnnotations = Util\Test::parseTestMethodAnnotations( $testClassName, - $testMethodName, + $testMethodName ); foreach ($annotations as $annotation) { @@ -230,7 +230,7 @@ public function bootstrap( $reporter = new Reporter\DefaultReporter( new Formatter\DefaultDurationFormatter(), $maximumDuration, - $maximumCount, + $maximumCount ); $facade->registerSubscribers( @@ -238,12 +238,12 @@ public function bootstrap( new Subscriber\Test\FinishedSubscriber( $maximumDuration, $timeKeeper, - $collector, + $collector ), new Subscriber\TestRunner\ExecutionFinishedSubscriber( $collector, - $reporter, - ), + $reporter + ) ); } } @@ -253,5 +253,5 @@ public function bootstrap( throw new \RuntimeException(\sprintf( 'Unable to select extension for PHPUnit version with version series "%s".', - Runner\Version::series(), + Runner\Version::series() )); diff --git a/src/Formatter/DefaultDurationFormatter.php b/src/Formatter/DefaultDurationFormatter.php index 3c106aa4..5f603fb0 100644 --- a/src/Formatter/DefaultDurationFormatter.php +++ b/src/Formatter/DefaultDurationFormatter.php @@ -46,7 +46,7 @@ public function format(Duration $duration): string $hours, $minutes, $seconds, - $milliseconds, + $milliseconds ); } @@ -55,14 +55,14 @@ public function format(Duration $duration): string '%d:%02d.%03d', $minutes, $seconds, - $milliseconds, + $milliseconds ); } return \sprintf( '%d.%03d', $seconds, - $milliseconds, + $milliseconds ); } } diff --git a/src/Phase.php b/src/Phase.php index 560b4650..0fee0d38 100644 --- a/src/Phase.php +++ b/src/Phase.php @@ -59,7 +59,7 @@ public static function create( $phaseIdentifier, $startTime, $stopTime, - $stopTime->duration($startTime), + $stopTime->duration($startTime) ); } diff --git a/src/PhaseStart.php b/src/PhaseStart.php index d06d99e5..317e9eb9 100644 --- a/src/PhaseStart.php +++ b/src/PhaseStart.php @@ -42,7 +42,7 @@ public static function create( ): self { return new self( $phaseIdentifier, - $startTime, + $startTime ); } diff --git a/src/Reporter/DefaultReporter.php b/src/Reporter/DefaultReporter.php index af55c933..342bad27 100644 --- a/src/Reporter/DefaultReporter.php +++ b/src/Reporter/DefaultReporter.php @@ -103,14 +103,14 @@ private function list(SlowTest ...$slowTests): string \usort($slowTests, static function (SlowTest $one, SlowTest $two) use ($durationComparator): int { return $durationComparator->compare( $two->duration(), - $one->duration(), + $one->duration() ); }); $slowTestsToReport = \array_slice( $slowTests, 0, - $this->maximumCount->toInt(), + $this->maximumCount->toInt() ); /** @var SlowTest $slowestTest */ @@ -125,7 +125,7 @@ static function (Duration $maximumDuration, SlowTest $slowTest): Duration { return $maximumDuration; }, - $this->maximumDuration, + $this->maximumDuration ); $durationFormatter = $this->durationFormatter; @@ -139,14 +139,14 @@ static function (Duration $maximumDuration, SlowTest $slowTest): Duration { (string) $number, $numberWidth, ' ', - \STR_PAD_LEFT, + \STR_PAD_LEFT ); $formattedDuration = \str_pad( $durationFormatter->format($slowTest->duration()), $durationWidth, ' ', - \STR_PAD_LEFT, + \STR_PAD_LEFT ); $formattedMaximumDuration = \sprintf( @@ -155,8 +155,8 @@ static function (Duration $maximumDuration, SlowTest $slowTest): Duration { $durationFormatter->format($slowTest->maximumDuration()), $maximumDurationWidth, ' ', - \STR_PAD_LEFT, - ), + \STR_PAD_LEFT + ) ); $testName = $slowTest->testIdentifier()->toString(); @@ -168,7 +168,7 @@ static function (Duration $maximumDuration, SlowTest $slowTest): Duration { return \implode( "\n", - $items, + $items ); } @@ -176,7 +176,7 @@ private function footer(SlowTest ...$slowTests): string { $remainingCount = \max( \count($slowTests) - $this->maximumCount->toInt(), - 0, + 0 ); if (0 === $remainingCount) { diff --git a/src/SlowTest.php b/src/SlowTest.php index 221b08e8..3f13c1d7 100644 --- a/src/SlowTest.php +++ b/src/SlowTest.php @@ -51,7 +51,7 @@ public static function create( return new self( $testIdentifier, $duration, - $maximumDuration, + $maximumDuration ); } diff --git a/src/Subscriber/Test/FinishedSubscriber.php b/src/Subscriber/Test/FinishedSubscriber.php index 4542c94b..c53a3afc 100644 --- a/src/Subscriber/Test/FinishedSubscriber.php +++ b/src/Subscriber/Test/FinishedSubscriber.php @@ -68,8 +68,8 @@ public function notify(Event\Test\Finished $event): void $phaseIdentifier, Time::fromSecondsAndNanoseconds( $time->seconds(), - $time->nanoseconds(), - ), + $time->nanoseconds() + ) ); $duration = $phase->duration(); @@ -83,7 +83,7 @@ public function notify(Event\Test\Finished $event): void $slowTest = SlowTest::create( TestIdentifier::fromString($event->test()->id()), $duration, - $maximumDuration, + $maximumDuration ); $this->collector->collect($slowTest); @@ -111,7 +111,7 @@ private static function resolveMaximumDurationFromAttribute(Event\Code\Test $tes /** @var Event\Code\TestMethod $test */ $methodReflection = new \ReflectionMethod( $test->className(), - $test->methodName(), + $test->methodName() ); $attributeReflections = $methodReflection->getAttributes(Attribute\MaximumDuration::class); @@ -137,7 +137,7 @@ private static function resolveMaximumDurationFromAnnotation(Event\Code\Test $te /** @var Event\Code\TestMethod $test */ $docBlock = Metadata\Annotation\Parser\Registry::getInstance()->forMethod( $test->className(), - $test->methodName(), + $test->methodName() ); $symbolAnnotations = $docBlock->symbolAnnotations(); diff --git a/src/Subscriber/Test/PreparationStartedSubscriber.php b/src/Subscriber/Test/PreparationStartedSubscriber.php index 4c13781e..b535124a 100644 --- a/src/Subscriber/Test/PreparationStartedSubscriber.php +++ b/src/Subscriber/Test/PreparationStartedSubscriber.php @@ -44,8 +44,8 @@ public function notify(Event\Test\PreparationStarted $event): void PhaseIdentifier::fromString($event->test()->id()), Time::fromSecondsAndNanoseconds( $time->seconds(), - $time->nanoseconds(), - ), + $time->nanoseconds() + ) ); } } diff --git a/src/Time.php b/src/Time.php index c581f094..ed53fdf0 100644 --- a/src/Time.php +++ b/src/Time.php @@ -57,13 +57,13 @@ public static function fromSecondsAndNanoseconds( if ($maxNanoseconds < $nanoseconds) { throw Exception\InvalidNanoseconds::notLessThanOrEqualTo( $nanoseconds, - $maxNanoseconds, + $maxNanoseconds ); } return new self( $seconds, - $nanoseconds, + $nanoseconds ); } @@ -97,7 +97,7 @@ public function duration(self $start): Duration return Duration::fromSecondsAndNanoseconds( $seconds, - $nanoseconds, + $nanoseconds ); } } diff --git a/src/TimeKeeper.php b/src/TimeKeeper.php index 6db22bec..27409541 100644 --- a/src/TimeKeeper.php +++ b/src/TimeKeeper.php @@ -31,7 +31,7 @@ public function start( $this->phaseStarts[$key] = PhaseStart::create( $phaseIdentifier, - $startTime, + $startTime ); } @@ -55,7 +55,7 @@ public function stop( return Phase::create( $phaseIdentifier, $phaseStart->startTime(), - $stopTime, + $stopTime ); } } diff --git a/src/Version/Major.php b/src/Version/Major.php index 817e22da..fc4a278b 100644 --- a/src/Version/Major.php +++ b/src/Version/Major.php @@ -36,7 +36,7 @@ public static function fromInt(int $value): self if (0 > $value) { throw new \InvalidArgumentException(\sprintf( 'Value "%d" does not appear to be a valid value for a major version.', - $value, + $value )); } diff --git a/src/Version/Series.php b/src/Version/Series.php index c2fc8128..723a1d5f 100644 --- a/src/Version/Series.php +++ b/src/Version/Series.php @@ -41,7 +41,7 @@ public static function fromString(string $value): self if (0 === \preg_match('/^(?P(0|[1-9]\d*))\.(?P(0|[1-9]\d*))?$/', $value, $matches)) { throw new \InvalidArgumentException(\sprintf( 'Value "%s" does not appear to be a valid value for a semantic version.', - $value, + $value )); } diff --git a/test/DataProvider/StringProvider.php b/test/DataProvider/StringProvider.php index 581f4101..591b3af6 100644 --- a/test/DataProvider/StringProvider.php +++ b/test/DataProvider/StringProvider.php @@ -98,10 +98,10 @@ private static function values(): array \array_map(static function (string $key): string { return \sprintf( 'string-blank-%s', - $key, + $key ); }, \array_keys($whitespaceCharacters)), - $whitespaceCharacters, + $whitespaceCharacters ); $emptyValues = [ @@ -112,7 +112,7 @@ private static function values(): array \array_map(static function (string $key): string { return \sprintf( 'string-untrimmed-%s', - $key, + $key ); }, \array_keys($whitespaceCharacters)), \array_map(static function (string $whitespaceCharacter) use ($faker): string { @@ -120,22 +120,22 @@ private static function values(): array '%s%s%s', \str_repeat( $whitespaceCharacter, - $faker->numberBetween(1, 5), + $faker->numberBetween(1, 5) ), $faker->word(), \str_repeat( $whitespaceCharacter, - $faker->numberBetween(1, 5), - ), + $faker->numberBetween(1, 5) + ) ); - }, $whitespaceCharacters), + }, $whitespaceCharacters) ); $withWhitespaceValues = \array_combine( \array_map(static function (string $key): string { return \sprintf( 'string-with-whitespace-%s', - $key, + $key ); }, \array_keys($whitespaceCharacters)), \array_map(static function (string $whitespaceCharacter) use ($faker): string { @@ -144,9 +144,9 @@ private static function values(): array return \implode( $whitespaceCharacter, - $words, + $words ); - }, $whitespaceCharacters), + }, $whitespaceCharacters) ); return \array_merge( @@ -154,7 +154,7 @@ private static function values(): array $blankValues, $emptyValues, $untrimmedValues, - $withWhitespaceValues, + $withWhitespaceValues ); } diff --git a/test/EndToEnd/Version07/Configuration/Defaults/SleeperTest.php b/test/EndToEnd/Version07/Configuration/Defaults/SleeperTest.php index f088ff61..b6321ab8 100644 --- a/test/EndToEnd/Version07/Configuration/Defaults/SleeperTest.php +++ b/test/EndToEnd/Version07/Configuration/Defaults/SleeperTest.php @@ -52,7 +52,7 @@ public static function provideMillisecondsGreaterThanDefaultMaximumDuration(): i $values = \range( 600, 1600, - 100, + 100 ); foreach ($values as $value) { diff --git a/test/EndToEnd/Version07/Configuration/MaximumCount/SleeperTest.php b/test/EndToEnd/Version07/Configuration/MaximumCount/SleeperTest.php index f32b08d0..3f78f958 100644 --- a/test/EndToEnd/Version07/Configuration/MaximumCount/SleeperTest.php +++ b/test/EndToEnd/Version07/Configuration/MaximumCount/SleeperTest.php @@ -52,7 +52,7 @@ public static function provideMillisecondsGreaterThanDefaultMaximumDuration(): i $values = \range( 600, 1000, - 100, + 100 ); foreach ($values as $value) { diff --git a/test/EndToEnd/Version07/Configuration/MaximumDuration/SleeperTest.php b/test/EndToEnd/Version07/Configuration/MaximumDuration/SleeperTest.php index a83a2a1c..f4b30612 100644 --- a/test/EndToEnd/Version07/Configuration/MaximumDuration/SleeperTest.php +++ b/test/EndToEnd/Version07/Configuration/MaximumDuration/SleeperTest.php @@ -52,7 +52,7 @@ public static function provideMillisecondsGreaterThanMaximumDurationFromXmlConfi $values = \range( 200, 1200, - 100, + 100 ); foreach ($values as $value) { diff --git a/test/EndToEnd/Version07/TestCase/Bare/SleeperTest.php b/test/EndToEnd/Version07/TestCase/Bare/SleeperTest.php index 092bb36f..94cc6208 100644 --- a/test/EndToEnd/Version07/TestCase/Bare/SleeperTest.php +++ b/test/EndToEnd/Version07/TestCase/Bare/SleeperTest.php @@ -52,7 +52,7 @@ public static function provideMillisecondsGreaterThanMaximumDurationFromXmlConfi $values = \range( 200, 300, - 100, + 100 ); foreach ($values as $value) { diff --git a/test/EndToEnd/Version07/TestCase/Combination/SleeperTest.php b/test/EndToEnd/Version07/TestCase/Combination/SleeperTest.php index 7ac240df..ef8884bf 100644 --- a/test/EndToEnd/Version07/TestCase/Combination/SleeperTest.php +++ b/test/EndToEnd/Version07/TestCase/Combination/SleeperTest.php @@ -114,7 +114,7 @@ public static function provideMillisecondsGreaterThanMaximumDurationFromXmlConfi $values = \range( 200, 300, - 100, + 100 ); foreach ($values as $value) { diff --git a/test/EndToEnd/Version07/TestCase/WithAfterAnnotation/SleeperTest.php b/test/EndToEnd/Version07/TestCase/WithAfterAnnotation/SleeperTest.php index b6692b13..f8005102 100644 --- a/test/EndToEnd/Version07/TestCase/WithAfterAnnotation/SleeperTest.php +++ b/test/EndToEnd/Version07/TestCase/WithAfterAnnotation/SleeperTest.php @@ -60,7 +60,7 @@ public static function provideMillisecondsGreaterThanMaximumDurationFromXmlConfi $values = \range( 200, 300, - 100, + 100 ); foreach ($values as $value) { diff --git a/test/EndToEnd/Version07/TestCase/WithAfterClassAnnotation/SleeperTest.php b/test/EndToEnd/Version07/TestCase/WithAfterClassAnnotation/SleeperTest.php index 3ee8631e..6b8d26c8 100644 --- a/test/EndToEnd/Version07/TestCase/WithAfterClassAnnotation/SleeperTest.php +++ b/test/EndToEnd/Version07/TestCase/WithAfterClassAnnotation/SleeperTest.php @@ -60,7 +60,7 @@ public static function provideMillisecondsGreaterThanMaximumDurationFromXmlConfi $values = \range( 200, 300, - 100, + 100 ); foreach ($values as $value) { diff --git a/test/EndToEnd/Version07/TestCase/WithAssertPostConditions/SleeperTest.php b/test/EndToEnd/Version07/TestCase/WithAssertPostConditions/SleeperTest.php index b613b6d4..1904782f 100644 --- a/test/EndToEnd/Version07/TestCase/WithAssertPostConditions/SleeperTest.php +++ b/test/EndToEnd/Version07/TestCase/WithAssertPostConditions/SleeperTest.php @@ -57,7 +57,7 @@ public static function provideMillisecondsGreaterThanMaximumDurationFromXmlConfi $values = \range( 200, 300, - 100, + 100 ); foreach ($values as $value) { diff --git a/test/EndToEnd/Version07/TestCase/WithAssertPreConditions/SleeperTest.php b/test/EndToEnd/Version07/TestCase/WithAssertPreConditions/SleeperTest.php index f438a8c8..469a1aec 100644 --- a/test/EndToEnd/Version07/TestCase/WithAssertPreConditions/SleeperTest.php +++ b/test/EndToEnd/Version07/TestCase/WithAssertPreConditions/SleeperTest.php @@ -57,7 +57,7 @@ public static function provideMillisecondsGreaterThanMaximumDurationFromXmlConfi $values = \range( 200, 300, - 100, + 100 ); foreach ($values as $value) { diff --git a/test/EndToEnd/Version07/TestCase/WithBeforeAnnotation/SleeperTest.php b/test/EndToEnd/Version07/TestCase/WithBeforeAnnotation/SleeperTest.php index 0e743bd1..9e01aea2 100644 --- a/test/EndToEnd/Version07/TestCase/WithBeforeAnnotation/SleeperTest.php +++ b/test/EndToEnd/Version07/TestCase/WithBeforeAnnotation/SleeperTest.php @@ -60,7 +60,7 @@ public static function provideMillisecondsGreaterThanMaximumDurationFromXmlConfi $values = \range( 200, 300, - 100, + 100 ); foreach ($values as $value) { diff --git a/test/EndToEnd/Version07/TestCase/WithBeforeClassAnnotation/SleeperTest.php b/test/EndToEnd/Version07/TestCase/WithBeforeClassAnnotation/SleeperTest.php index 15d5e04d..c6c9de96 100644 --- a/test/EndToEnd/Version07/TestCase/WithBeforeClassAnnotation/SleeperTest.php +++ b/test/EndToEnd/Version07/TestCase/WithBeforeClassAnnotation/SleeperTest.php @@ -60,7 +60,7 @@ public static function provideMillisecondsGreaterThanMaximumDurationFromXmlConfi $values = \range( 200, 300, - 100, + 100 ); foreach ($values as $value) { diff --git a/test/EndToEnd/Version07/TestCase/WithDataProvider/SleeperTest.php b/test/EndToEnd/Version07/TestCase/WithDataProvider/SleeperTest.php index a66f0bb8..af80ce58 100644 --- a/test/EndToEnd/Version07/TestCase/WithDataProvider/SleeperTest.php +++ b/test/EndToEnd/Version07/TestCase/WithDataProvider/SleeperTest.php @@ -52,7 +52,7 @@ public static function provideMillisecondsGreaterThanMaximumDurationFromXmlConfi $values = \range( 200, 300, - 100, + 100 ); foreach ($values as $value) { diff --git a/test/EndToEnd/Version07/TestCase/WithSetUp/SleeperTest.php b/test/EndToEnd/Version07/TestCase/WithSetUp/SleeperTest.php index e941d6c8..891f8dda 100644 --- a/test/EndToEnd/Version07/TestCase/WithSetUp/SleeperTest.php +++ b/test/EndToEnd/Version07/TestCase/WithSetUp/SleeperTest.php @@ -57,7 +57,7 @@ public static function provideMillisecondsGreaterThanMaximumDurationFromXmlConfi $values = \range( 200, 300, - 100, + 100 ); foreach ($values as $value) { diff --git a/test/EndToEnd/Version07/TestCase/WithSetUpBeforeClass/SleeperTest.php b/test/EndToEnd/Version07/TestCase/WithSetUpBeforeClass/SleeperTest.php index 9dfb05af..2ad0e6f4 100644 --- a/test/EndToEnd/Version07/TestCase/WithSetUpBeforeClass/SleeperTest.php +++ b/test/EndToEnd/Version07/TestCase/WithSetUpBeforeClass/SleeperTest.php @@ -57,7 +57,7 @@ public static function provideMillisecondsGreaterThanMaximumDurationFromXmlConfi $values = \range( 200, 300, - 100, + 100 ); foreach ($values as $value) { diff --git a/test/EndToEnd/Version07/TestCase/WithTearDown/SleeperTest.php b/test/EndToEnd/Version07/TestCase/WithTearDown/SleeperTest.php index 1aba5795..7ff03f0f 100644 --- a/test/EndToEnd/Version07/TestCase/WithTearDown/SleeperTest.php +++ b/test/EndToEnd/Version07/TestCase/WithTearDown/SleeperTest.php @@ -57,7 +57,7 @@ public static function provideMillisecondsGreaterThanMaximumDurationFromXmlConfi $values = \range( 200, 300, - 100, + 100 ); foreach ($values as $value) { diff --git a/test/EndToEnd/Version07/TestCase/WithTearDownAfterClass/SleeperTest.php b/test/EndToEnd/Version07/TestCase/WithTearDownAfterClass/SleeperTest.php index ba86c8c7..caa07ac9 100644 --- a/test/EndToEnd/Version07/TestCase/WithTearDownAfterClass/SleeperTest.php +++ b/test/EndToEnd/Version07/TestCase/WithTearDownAfterClass/SleeperTest.php @@ -57,7 +57,7 @@ public static function provideMillisecondsGreaterThanMaximumDurationFromXmlConfi $values = \range( 200, 300, - 100, + 100 ); foreach ($values as $value) { diff --git a/test/EndToEnd/Version08/Configuration/Defaults/SleeperTest.php b/test/EndToEnd/Version08/Configuration/Defaults/SleeperTest.php index 181a2b88..6e26d9c3 100644 --- a/test/EndToEnd/Version08/Configuration/Defaults/SleeperTest.php +++ b/test/EndToEnd/Version08/Configuration/Defaults/SleeperTest.php @@ -52,7 +52,7 @@ public static function provideMillisecondsGreaterThanDefaultMaximumDuration(): i $values = \range( 600, 1600, - 100, + 100 ); foreach ($values as $value) { diff --git a/test/EndToEnd/Version08/Configuration/MaximumCount/SleeperTest.php b/test/EndToEnd/Version08/Configuration/MaximumCount/SleeperTest.php index e451ebe6..22e26138 100644 --- a/test/EndToEnd/Version08/Configuration/MaximumCount/SleeperTest.php +++ b/test/EndToEnd/Version08/Configuration/MaximumCount/SleeperTest.php @@ -52,7 +52,7 @@ public static function provideMillisecondsGreaterThanDefaultMaximumDuration(): i $values = \range( 600, 1000, - 100, + 100 ); foreach ($values as $value) { diff --git a/test/EndToEnd/Version08/Configuration/MaximumDuration/SleeperTest.php b/test/EndToEnd/Version08/Configuration/MaximumDuration/SleeperTest.php index c7f9ab26..e4508420 100644 --- a/test/EndToEnd/Version08/Configuration/MaximumDuration/SleeperTest.php +++ b/test/EndToEnd/Version08/Configuration/MaximumDuration/SleeperTest.php @@ -52,7 +52,7 @@ public static function provideMillisecondsGreaterThanMaximumDurationFromXmlConfi $values = \range( 200, 1200, - 100, + 100 ); foreach ($values as $value) { diff --git a/test/EndToEnd/Version08/TestCase/Bare/SleeperTest.php b/test/EndToEnd/Version08/TestCase/Bare/SleeperTest.php index 5b3808ea..6000b455 100644 --- a/test/EndToEnd/Version08/TestCase/Bare/SleeperTest.php +++ b/test/EndToEnd/Version08/TestCase/Bare/SleeperTest.php @@ -52,7 +52,7 @@ public static function provideMillisecondsGreaterThanMaximumDurationFromXmlConfi $values = \range( 200, 300, - 100, + 100 ); foreach ($values as $value) { diff --git a/test/EndToEnd/Version08/TestCase/Combination/SleeperTest.php b/test/EndToEnd/Version08/TestCase/Combination/SleeperTest.php index 7fd0bdea..6a0999e6 100644 --- a/test/EndToEnd/Version08/TestCase/Combination/SleeperTest.php +++ b/test/EndToEnd/Version08/TestCase/Combination/SleeperTest.php @@ -114,7 +114,7 @@ public static function provideMillisecondsGreaterThanMaximumDurationFromXmlConfi $values = \range( 200, 300, - 100, + 100 ); foreach ($values as $value) { diff --git a/test/EndToEnd/Version08/TestCase/WithAfterAnnotation/SleeperTest.php b/test/EndToEnd/Version08/TestCase/WithAfterAnnotation/SleeperTest.php index eae87d54..29cad156 100644 --- a/test/EndToEnd/Version08/TestCase/WithAfterAnnotation/SleeperTest.php +++ b/test/EndToEnd/Version08/TestCase/WithAfterAnnotation/SleeperTest.php @@ -60,7 +60,7 @@ public static function provideMillisecondsGreaterThanMaximumDurationFromXmlConfi $values = \range( 200, 300, - 100, + 100 ); foreach ($values as $value) { diff --git a/test/EndToEnd/Version08/TestCase/WithAfterClassAnnotation/SleeperTest.php b/test/EndToEnd/Version08/TestCase/WithAfterClassAnnotation/SleeperTest.php index 753a62c8..d047a66d 100644 --- a/test/EndToEnd/Version08/TestCase/WithAfterClassAnnotation/SleeperTest.php +++ b/test/EndToEnd/Version08/TestCase/WithAfterClassAnnotation/SleeperTest.php @@ -60,7 +60,7 @@ public static function provideMillisecondsGreaterThanMaximumDurationFromXmlConfi $values = \range( 200, 300, - 100, + 100 ); foreach ($values as $value) { diff --git a/test/EndToEnd/Version08/TestCase/WithAssertPostConditions/SleeperTest.php b/test/EndToEnd/Version08/TestCase/WithAssertPostConditions/SleeperTest.php index ba0ed8e4..57f1e20e 100644 --- a/test/EndToEnd/Version08/TestCase/WithAssertPostConditions/SleeperTest.php +++ b/test/EndToEnd/Version08/TestCase/WithAssertPostConditions/SleeperTest.php @@ -57,7 +57,7 @@ public static function provideMillisecondsGreaterThanMaximumDurationFromXmlConfi $values = \range( 200, 300, - 100, + 100 ); foreach ($values as $value) { diff --git a/test/EndToEnd/Version08/TestCase/WithAssertPreConditions/SleeperTest.php b/test/EndToEnd/Version08/TestCase/WithAssertPreConditions/SleeperTest.php index ded9ddc4..3360593d 100644 --- a/test/EndToEnd/Version08/TestCase/WithAssertPreConditions/SleeperTest.php +++ b/test/EndToEnd/Version08/TestCase/WithAssertPreConditions/SleeperTest.php @@ -57,7 +57,7 @@ public static function provideMillisecondsGreaterThanMaximumDurationFromXmlConfi $values = \range( 200, 300, - 100, + 100 ); foreach ($values as $value) { diff --git a/test/EndToEnd/Version08/TestCase/WithBeforeAnnotation/SleeperTest.php b/test/EndToEnd/Version08/TestCase/WithBeforeAnnotation/SleeperTest.php index a7d5f8e1..5dd59190 100644 --- a/test/EndToEnd/Version08/TestCase/WithBeforeAnnotation/SleeperTest.php +++ b/test/EndToEnd/Version08/TestCase/WithBeforeAnnotation/SleeperTest.php @@ -60,7 +60,7 @@ public static function provideMillisecondsGreaterThanMaximumDurationFromXmlConfi $values = \range( 200, 300, - 100, + 100 ); foreach ($values as $value) { diff --git a/test/EndToEnd/Version08/TestCase/WithBeforeClassAnnotation/SleeperTest.php b/test/EndToEnd/Version08/TestCase/WithBeforeClassAnnotation/SleeperTest.php index ae4034ef..6099c908 100644 --- a/test/EndToEnd/Version08/TestCase/WithBeforeClassAnnotation/SleeperTest.php +++ b/test/EndToEnd/Version08/TestCase/WithBeforeClassAnnotation/SleeperTest.php @@ -60,7 +60,7 @@ public static function provideMillisecondsGreaterThanMaximumDurationFromXmlConfi $values = \range( 200, 300, - 100, + 100 ); foreach ($values as $value) { diff --git a/test/EndToEnd/Version08/TestCase/WithDataProvider/SleeperTest.php b/test/EndToEnd/Version08/TestCase/WithDataProvider/SleeperTest.php index 070416f8..89704e39 100644 --- a/test/EndToEnd/Version08/TestCase/WithDataProvider/SleeperTest.php +++ b/test/EndToEnd/Version08/TestCase/WithDataProvider/SleeperTest.php @@ -52,7 +52,7 @@ public static function provideMillisecondsGreaterThanMaximumDurationFromXmlConfi $values = \range( 200, 300, - 100, + 100 ); foreach ($values as $value) { diff --git a/test/EndToEnd/Version08/TestCase/WithSetUp/SleeperTest.php b/test/EndToEnd/Version08/TestCase/WithSetUp/SleeperTest.php index 10b7b63c..9947370c 100644 --- a/test/EndToEnd/Version08/TestCase/WithSetUp/SleeperTest.php +++ b/test/EndToEnd/Version08/TestCase/WithSetUp/SleeperTest.php @@ -57,7 +57,7 @@ public static function provideMillisecondsGreaterThanMaximumDurationFromXmlConfi $values = \range( 200, 300, - 100, + 100 ); foreach ($values as $value) { diff --git a/test/EndToEnd/Version08/TestCase/WithSetUpBeforeClass/SleeperTest.php b/test/EndToEnd/Version08/TestCase/WithSetUpBeforeClass/SleeperTest.php index f0f6de78..60efb7e6 100644 --- a/test/EndToEnd/Version08/TestCase/WithSetUpBeforeClass/SleeperTest.php +++ b/test/EndToEnd/Version08/TestCase/WithSetUpBeforeClass/SleeperTest.php @@ -57,7 +57,7 @@ public static function provideMillisecondsGreaterThanMaximumDurationFromXmlConfi $values = \range( 200, 300, - 100, + 100 ); foreach ($values as $value) { diff --git a/test/EndToEnd/Version08/TestCase/WithTearDown/SleeperTest.php b/test/EndToEnd/Version08/TestCase/WithTearDown/SleeperTest.php index ed36364e..8635a910 100644 --- a/test/EndToEnd/Version08/TestCase/WithTearDown/SleeperTest.php +++ b/test/EndToEnd/Version08/TestCase/WithTearDown/SleeperTest.php @@ -57,7 +57,7 @@ public static function provideMillisecondsGreaterThanMaximumDurationFromXmlConfi $values = \range( 200, 300, - 100, + 100 ); foreach ($values as $value) { diff --git a/test/EndToEnd/Version08/TestCase/WithTearDownAfterClass/SleeperTest.php b/test/EndToEnd/Version08/TestCase/WithTearDownAfterClass/SleeperTest.php index ce6de269..be92569e 100644 --- a/test/EndToEnd/Version08/TestCase/WithTearDownAfterClass/SleeperTest.php +++ b/test/EndToEnd/Version08/TestCase/WithTearDownAfterClass/SleeperTest.php @@ -57,7 +57,7 @@ public static function provideMillisecondsGreaterThanMaximumDurationFromXmlConfi $values = \range( 200, 300, - 100, + 100 ); foreach ($values as $value) { diff --git a/test/EndToEnd/Version09/Configuration/Defaults/SleeperTest.php b/test/EndToEnd/Version09/Configuration/Defaults/SleeperTest.php index 99593ed7..1251c1f6 100644 --- a/test/EndToEnd/Version09/Configuration/Defaults/SleeperTest.php +++ b/test/EndToEnd/Version09/Configuration/Defaults/SleeperTest.php @@ -52,7 +52,7 @@ public static function provideMillisecondsGreaterThanDefaultMaximumDuration(): i $values = \range( 600, 1600, - 100, + 100 ); foreach ($values as $value) { diff --git a/test/EndToEnd/Version09/Configuration/MaximumCount/SleeperTest.php b/test/EndToEnd/Version09/Configuration/MaximumCount/SleeperTest.php index ec7a1619..eaaba397 100644 --- a/test/EndToEnd/Version09/Configuration/MaximumCount/SleeperTest.php +++ b/test/EndToEnd/Version09/Configuration/MaximumCount/SleeperTest.php @@ -52,7 +52,7 @@ public static function provideMillisecondsGreaterThanDefaultMaximumDuration(): i $values = \range( 600, 1000, - 100, + 100 ); foreach ($values as $value) { diff --git a/test/EndToEnd/Version09/Configuration/MaximumDuration/SleeperTest.php b/test/EndToEnd/Version09/Configuration/MaximumDuration/SleeperTest.php index 7e11b064..6e83823e 100644 --- a/test/EndToEnd/Version09/Configuration/MaximumDuration/SleeperTest.php +++ b/test/EndToEnd/Version09/Configuration/MaximumDuration/SleeperTest.php @@ -52,7 +52,7 @@ public static function provideMillisecondsGreaterThanMaximumDurationFromXmlConfi $values = \range( 200, 1200, - 100, + 100 ); foreach ($values as $value) { diff --git a/test/EndToEnd/Version09/TestCase/Bare/SleeperTest.php b/test/EndToEnd/Version09/TestCase/Bare/SleeperTest.php index 9074e19d..b3ebc3f9 100644 --- a/test/EndToEnd/Version09/TestCase/Bare/SleeperTest.php +++ b/test/EndToEnd/Version09/TestCase/Bare/SleeperTest.php @@ -52,7 +52,7 @@ public static function provideMillisecondsGreaterThanMaximumDurationFromXmlConfi $values = \range( 200, 300, - 100, + 100 ); foreach ($values as $value) { diff --git a/test/EndToEnd/Version09/TestCase/Combination/SleeperTest.php b/test/EndToEnd/Version09/TestCase/Combination/SleeperTest.php index 83bcc1ed..e77e6b50 100644 --- a/test/EndToEnd/Version09/TestCase/Combination/SleeperTest.php +++ b/test/EndToEnd/Version09/TestCase/Combination/SleeperTest.php @@ -114,7 +114,7 @@ public static function provideMillisecondsGreaterThanMaximumDurationFromXmlConfi $values = \range( 200, 300, - 100, + 100 ); foreach ($values as $value) { diff --git a/test/EndToEnd/Version09/TestCase/WithAfterAnnotation/SleeperTest.php b/test/EndToEnd/Version09/TestCase/WithAfterAnnotation/SleeperTest.php index ad9764bb..281a6234 100644 --- a/test/EndToEnd/Version09/TestCase/WithAfterAnnotation/SleeperTest.php +++ b/test/EndToEnd/Version09/TestCase/WithAfterAnnotation/SleeperTest.php @@ -60,7 +60,7 @@ public static function provideMillisecondsGreaterThanMaximumDurationFromXmlConfi $values = \range( 200, 300, - 100, + 100 ); foreach ($values as $value) { diff --git a/test/EndToEnd/Version09/TestCase/WithAfterClassAnnotation/SleeperTest.php b/test/EndToEnd/Version09/TestCase/WithAfterClassAnnotation/SleeperTest.php index b8f817b7..277d3718 100644 --- a/test/EndToEnd/Version09/TestCase/WithAfterClassAnnotation/SleeperTest.php +++ b/test/EndToEnd/Version09/TestCase/WithAfterClassAnnotation/SleeperTest.php @@ -60,7 +60,7 @@ public static function provideMillisecondsGreaterThanMaximumDurationFromXmlConfi $values = \range( 200, 300, - 100, + 100 ); foreach ($values as $value) { diff --git a/test/EndToEnd/Version09/TestCase/WithAssertPostConditions/SleeperTest.php b/test/EndToEnd/Version09/TestCase/WithAssertPostConditions/SleeperTest.php index 2eb52bac..d5becfc1 100644 --- a/test/EndToEnd/Version09/TestCase/WithAssertPostConditions/SleeperTest.php +++ b/test/EndToEnd/Version09/TestCase/WithAssertPostConditions/SleeperTest.php @@ -57,7 +57,7 @@ public static function provideMillisecondsGreaterThanMaximumDurationFromXmlConfi $values = \range( 200, 300, - 100, + 100 ); foreach ($values as $value) { diff --git a/test/EndToEnd/Version09/TestCase/WithAssertPreConditions/SleeperTest.php b/test/EndToEnd/Version09/TestCase/WithAssertPreConditions/SleeperTest.php index 2e7a86a1..d7e44943 100644 --- a/test/EndToEnd/Version09/TestCase/WithAssertPreConditions/SleeperTest.php +++ b/test/EndToEnd/Version09/TestCase/WithAssertPreConditions/SleeperTest.php @@ -57,7 +57,7 @@ public static function provideMillisecondsGreaterThanMaximumDurationFromXmlConfi $values = \range( 200, 300, - 100, + 100 ); foreach ($values as $value) { diff --git a/test/EndToEnd/Version09/TestCase/WithBeforeAnnotation/SleeperTest.php b/test/EndToEnd/Version09/TestCase/WithBeforeAnnotation/SleeperTest.php index a580e601..6374b965 100644 --- a/test/EndToEnd/Version09/TestCase/WithBeforeAnnotation/SleeperTest.php +++ b/test/EndToEnd/Version09/TestCase/WithBeforeAnnotation/SleeperTest.php @@ -60,7 +60,7 @@ public static function provideMillisecondsGreaterThanMaximumDurationFromXmlConfi $values = \range( 200, 300, - 100, + 100 ); foreach ($values as $value) { diff --git a/test/EndToEnd/Version09/TestCase/WithBeforeClassAnnotation/SleeperTest.php b/test/EndToEnd/Version09/TestCase/WithBeforeClassAnnotation/SleeperTest.php index 70ee6bbd..aaf3992d 100644 --- a/test/EndToEnd/Version09/TestCase/WithBeforeClassAnnotation/SleeperTest.php +++ b/test/EndToEnd/Version09/TestCase/WithBeforeClassAnnotation/SleeperTest.php @@ -60,7 +60,7 @@ public static function provideMillisecondsGreaterThanMaximumDurationFromXmlConfi $values = \range( 200, 300, - 100, + 100 ); foreach ($values as $value) { diff --git a/test/EndToEnd/Version09/TestCase/WithDataProvider/SleeperTest.php b/test/EndToEnd/Version09/TestCase/WithDataProvider/SleeperTest.php index a9a6ea0a..f03b3f13 100644 --- a/test/EndToEnd/Version09/TestCase/WithDataProvider/SleeperTest.php +++ b/test/EndToEnd/Version09/TestCase/WithDataProvider/SleeperTest.php @@ -52,7 +52,7 @@ public static function provideMillisecondsGreaterThanMaximumDurationFromXmlConfi $values = \range( 200, 300, - 100, + 100 ); foreach ($values as $value) { diff --git a/test/EndToEnd/Version09/TestCase/WithSetUp/SleeperTest.php b/test/EndToEnd/Version09/TestCase/WithSetUp/SleeperTest.php index 1572494f..c537049d 100644 --- a/test/EndToEnd/Version09/TestCase/WithSetUp/SleeperTest.php +++ b/test/EndToEnd/Version09/TestCase/WithSetUp/SleeperTest.php @@ -57,7 +57,7 @@ public static function provideMillisecondsGreaterThanMaximumDurationFromXmlConfi $values = \range( 200, 300, - 100, + 100 ); foreach ($values as $value) { diff --git a/test/EndToEnd/Version09/TestCase/WithSetUpBeforeClass/SleeperTest.php b/test/EndToEnd/Version09/TestCase/WithSetUpBeforeClass/SleeperTest.php index 4e3d6702..814c5f53 100644 --- a/test/EndToEnd/Version09/TestCase/WithSetUpBeforeClass/SleeperTest.php +++ b/test/EndToEnd/Version09/TestCase/WithSetUpBeforeClass/SleeperTest.php @@ -57,7 +57,7 @@ public static function provideMillisecondsGreaterThanMaximumDurationFromXmlConfi $values = \range( 200, 300, - 100, + 100 ); foreach ($values as $value) { diff --git a/test/EndToEnd/Version09/TestCase/WithTearDown/SleeperTest.php b/test/EndToEnd/Version09/TestCase/WithTearDown/SleeperTest.php index f5bfb2bc..fde99ff5 100644 --- a/test/EndToEnd/Version09/TestCase/WithTearDown/SleeperTest.php +++ b/test/EndToEnd/Version09/TestCase/WithTearDown/SleeperTest.php @@ -57,7 +57,7 @@ public static function provideMillisecondsGreaterThanMaximumDurationFromXmlConfi $values = \range( 200, 300, - 100, + 100 ); foreach ($values as $value) { diff --git a/test/EndToEnd/Version09/TestCase/WithTearDownAfterClass/SleeperTest.php b/test/EndToEnd/Version09/TestCase/WithTearDownAfterClass/SleeperTest.php index 9966f922..500dec22 100644 --- a/test/EndToEnd/Version09/TestCase/WithTearDownAfterClass/SleeperTest.php +++ b/test/EndToEnd/Version09/TestCase/WithTearDownAfterClass/SleeperTest.php @@ -57,7 +57,7 @@ public static function provideMillisecondsGreaterThanMaximumDurationFromXmlConfi $values = \range( 200, 300, - 100, + 100 ); foreach ($values as $value) { diff --git a/test/EndToEnd/Version10/Configuration/Defaults/SleeperTest.php b/test/EndToEnd/Version10/Configuration/Defaults/SleeperTest.php index b90f73d3..1d02190e 100644 --- a/test/EndToEnd/Version10/Configuration/Defaults/SleeperTest.php +++ b/test/EndToEnd/Version10/Configuration/Defaults/SleeperTest.php @@ -48,7 +48,7 @@ public static function provideMillisecondsGreaterThanDefaultMaximumDuration(): i $values = \range( 600, 1600, - 100, + 100 ); foreach ($values as $value) { diff --git a/test/EndToEnd/Version10/Configuration/MaximumCount/SleeperTest.php b/test/EndToEnd/Version10/Configuration/MaximumCount/SleeperTest.php index 74d5cd67..eeb6910b 100644 --- a/test/EndToEnd/Version10/Configuration/MaximumCount/SleeperTest.php +++ b/test/EndToEnd/Version10/Configuration/MaximumCount/SleeperTest.php @@ -48,7 +48,7 @@ public static function provideMillisecondsGreaterThanDefaultMaximumDuration(): i $values = \range( 600, 1000, - 100, + 100 ); foreach ($values as $value) { diff --git a/test/EndToEnd/Version10/Configuration/MaximumDuration/SleeperTest.php b/test/EndToEnd/Version10/Configuration/MaximumDuration/SleeperTest.php index 835fc760..7634cb23 100644 --- a/test/EndToEnd/Version10/Configuration/MaximumDuration/SleeperTest.php +++ b/test/EndToEnd/Version10/Configuration/MaximumDuration/SleeperTest.php @@ -48,7 +48,7 @@ public static function provideMillisecondsGreaterThanMaximumDurationFromXmlConfi $values = \range( 200, 1200, - 100, + 100 ); foreach ($values as $value) { diff --git a/test/EndToEnd/Version10/TestCase/Bare/SleeperTest.php b/test/EndToEnd/Version10/TestCase/Bare/SleeperTest.php index a6d38ce8..f2a56269 100644 --- a/test/EndToEnd/Version10/TestCase/Bare/SleeperTest.php +++ b/test/EndToEnd/Version10/TestCase/Bare/SleeperTest.php @@ -48,7 +48,7 @@ public static function provideMillisecondsGreaterThanMaximumDurationFromXmlConfi $values = \range( 200, 300, - 100, + 100 ); foreach ($values as $value) { diff --git a/test/EndToEnd/Version10/TestCase/Combination/SleeperTest.php b/test/EndToEnd/Version10/TestCase/Combination/SleeperTest.php index 00bdfd7a..bd76d9dd 100644 --- a/test/EndToEnd/Version10/TestCase/Combination/SleeperTest.php +++ b/test/EndToEnd/Version10/TestCase/Combination/SleeperTest.php @@ -134,7 +134,7 @@ public static function provideMillisecondsGreaterThanMaximumDurationFromXmlConfi $values = \range( 200, 300, - 100, + 100 ); foreach ($values as $value) { diff --git a/test/EndToEnd/Version10/TestCase/WithAfterAnnotation/SleeperTest.php b/test/EndToEnd/Version10/TestCase/WithAfterAnnotation/SleeperTest.php index ab2b97c5..a00e4ecc 100644 --- a/test/EndToEnd/Version10/TestCase/WithAfterAnnotation/SleeperTest.php +++ b/test/EndToEnd/Version10/TestCase/WithAfterAnnotation/SleeperTest.php @@ -56,7 +56,7 @@ public static function provideMillisecondsGreaterThanMaximumDurationFromXmlConfi $values = \range( 200, 300, - 100, + 100 ); foreach ($values as $value) { diff --git a/test/EndToEnd/Version10/TestCase/WithAfterAttribute/SleeperTest.php b/test/EndToEnd/Version10/TestCase/WithAfterAttribute/SleeperTest.php index 54e159df..0ce14506 100644 --- a/test/EndToEnd/Version10/TestCase/WithAfterAttribute/SleeperTest.php +++ b/test/EndToEnd/Version10/TestCase/WithAfterAttribute/SleeperTest.php @@ -54,7 +54,7 @@ public static function provideMillisecondsGreaterThanMaximumDurationFromXmlConfi $values = \range( 200, 300, - 100, + 100 ); foreach ($values as $value) { diff --git a/test/EndToEnd/Version10/TestCase/WithAfterClassAnnotation/SleeperTest.php b/test/EndToEnd/Version10/TestCase/WithAfterClassAnnotation/SleeperTest.php index 11d7992b..f7fe6122 100644 --- a/test/EndToEnd/Version10/TestCase/WithAfterClassAnnotation/SleeperTest.php +++ b/test/EndToEnd/Version10/TestCase/WithAfterClassAnnotation/SleeperTest.php @@ -56,7 +56,7 @@ public static function provideMillisecondsGreaterThanMaximumDurationFromXmlConfi $values = \range( 200, 300, - 100, + 100 ); foreach ($values as $value) { diff --git a/test/EndToEnd/Version10/TestCase/WithAfterClassAttribute/SleeperTest.php b/test/EndToEnd/Version10/TestCase/WithAfterClassAttribute/SleeperTest.php index 47760ab5..26963df7 100644 --- a/test/EndToEnd/Version10/TestCase/WithAfterClassAttribute/SleeperTest.php +++ b/test/EndToEnd/Version10/TestCase/WithAfterClassAttribute/SleeperTest.php @@ -54,7 +54,7 @@ public static function provideMillisecondsGreaterThanMaximumDurationFromXmlConfi $values = \range( 200, 300, - 100, + 100 ); foreach ($values as $value) { diff --git a/test/EndToEnd/Version10/TestCase/WithAssertPostConditions/SleeperTest.php b/test/EndToEnd/Version10/TestCase/WithAssertPostConditions/SleeperTest.php index 05aee19d..4f41a707 100644 --- a/test/EndToEnd/Version10/TestCase/WithAssertPostConditions/SleeperTest.php +++ b/test/EndToEnd/Version10/TestCase/WithAssertPostConditions/SleeperTest.php @@ -53,7 +53,7 @@ public static function provideMillisecondsGreaterThanMaximumDurationFromXmlConfi $values = \range( 200, 300, - 100, + 100 ); foreach ($values as $value) { diff --git a/test/EndToEnd/Version10/TestCase/WithAssertPreConditions/SleeperTest.php b/test/EndToEnd/Version10/TestCase/WithAssertPreConditions/SleeperTest.php index 59acf87b..a68be6fc 100644 --- a/test/EndToEnd/Version10/TestCase/WithAssertPreConditions/SleeperTest.php +++ b/test/EndToEnd/Version10/TestCase/WithAssertPreConditions/SleeperTest.php @@ -53,7 +53,7 @@ public static function provideMillisecondsGreaterThanMaximumDurationFromXmlConfi $values = \range( 200, 300, - 100, + 100 ); foreach ($values as $value) { diff --git a/test/EndToEnd/Version10/TestCase/WithBeforeAnnotation/SleeperTest.php b/test/EndToEnd/Version10/TestCase/WithBeforeAnnotation/SleeperTest.php index f398f88b..575253b4 100644 --- a/test/EndToEnd/Version10/TestCase/WithBeforeAnnotation/SleeperTest.php +++ b/test/EndToEnd/Version10/TestCase/WithBeforeAnnotation/SleeperTest.php @@ -56,7 +56,7 @@ public static function provideMillisecondsGreaterThanMaximumDurationFromXmlConfi $values = \range( 200, 300, - 100, + 100 ); foreach ($values as $value) { diff --git a/test/EndToEnd/Version10/TestCase/WithBeforeAttribute/SleeperTest.php b/test/EndToEnd/Version10/TestCase/WithBeforeAttribute/SleeperTest.php index e3f3f5dd..1882a645 100644 --- a/test/EndToEnd/Version10/TestCase/WithBeforeAttribute/SleeperTest.php +++ b/test/EndToEnd/Version10/TestCase/WithBeforeAttribute/SleeperTest.php @@ -54,7 +54,7 @@ public static function provideMillisecondsGreaterThanMaximumDurationFromXmlConfi $values = \range( 200, 300, - 100, + 100 ); foreach ($values as $value) { diff --git a/test/EndToEnd/Version10/TestCase/WithBeforeClassAnnotation/SleeperTest.php b/test/EndToEnd/Version10/TestCase/WithBeforeClassAnnotation/SleeperTest.php index ccfe9df3..32be9577 100644 --- a/test/EndToEnd/Version10/TestCase/WithBeforeClassAnnotation/SleeperTest.php +++ b/test/EndToEnd/Version10/TestCase/WithBeforeClassAnnotation/SleeperTest.php @@ -56,7 +56,7 @@ public static function provideMillisecondsGreaterThanMaximumDurationFromXmlConfi $values = \range( 200, 300, - 100, + 100 ); foreach ($values as $value) { diff --git a/test/EndToEnd/Version10/TestCase/WithBeforeClassAttribute/SleeperTest.php b/test/EndToEnd/Version10/TestCase/WithBeforeClassAttribute/SleeperTest.php index d2f3c2cf..f8552e3d 100644 --- a/test/EndToEnd/Version10/TestCase/WithBeforeClassAttribute/SleeperTest.php +++ b/test/EndToEnd/Version10/TestCase/WithBeforeClassAttribute/SleeperTest.php @@ -54,7 +54,7 @@ public static function provideMillisecondsGreaterThanMaximumDurationFromXmlConfi $values = \range( 200, 300, - 100, + 100 ); foreach ($values as $value) { diff --git a/test/EndToEnd/Version10/TestCase/WithDataProvider/SleeperTest.php b/test/EndToEnd/Version10/TestCase/WithDataProvider/SleeperTest.php index 1ebfe73c..0234075a 100644 --- a/test/EndToEnd/Version10/TestCase/WithDataProvider/SleeperTest.php +++ b/test/EndToEnd/Version10/TestCase/WithDataProvider/SleeperTest.php @@ -48,7 +48,7 @@ public static function provideMillisecondsGreaterThanMaximumDurationFromXmlConfi $values = \range( 200, 300, - 100, + 100 ); foreach ($values as $value) { diff --git a/test/EndToEnd/Version10/TestCase/WithSetUp/SleeperTest.php b/test/EndToEnd/Version10/TestCase/WithSetUp/SleeperTest.php index bec758cc..cd32809a 100644 --- a/test/EndToEnd/Version10/TestCase/WithSetUp/SleeperTest.php +++ b/test/EndToEnd/Version10/TestCase/WithSetUp/SleeperTest.php @@ -53,7 +53,7 @@ public static function provideMillisecondsGreaterThanMaximumDurationFromXmlConfi $values = \range( 200, 300, - 100, + 100 ); foreach ($values as $value) { diff --git a/test/EndToEnd/Version10/TestCase/WithSetUpBeforeClass/SleeperTest.php b/test/EndToEnd/Version10/TestCase/WithSetUpBeforeClass/SleeperTest.php index 74ea0f98..f8a6cd8e 100644 --- a/test/EndToEnd/Version10/TestCase/WithSetUpBeforeClass/SleeperTest.php +++ b/test/EndToEnd/Version10/TestCase/WithSetUpBeforeClass/SleeperTest.php @@ -53,7 +53,7 @@ public static function provideMillisecondsGreaterThanMaximumDurationFromXmlConfi $values = \range( 200, 300, - 100, + 100 ); foreach ($values as $value) { diff --git a/test/EndToEnd/Version10/TestCase/WithTearDown/SleeperTest.php b/test/EndToEnd/Version10/TestCase/WithTearDown/SleeperTest.php index 59b51b07..5214d3f7 100644 --- a/test/EndToEnd/Version10/TestCase/WithTearDown/SleeperTest.php +++ b/test/EndToEnd/Version10/TestCase/WithTearDown/SleeperTest.php @@ -53,7 +53,7 @@ public static function provideMillisecondsGreaterThanMaximumDurationFromXmlConfi $values = \range( 200, 300, - 100, + 100 ); foreach ($values as $value) { diff --git a/test/EndToEnd/Version10/TestCase/WithTearDownAfterClass/SleeperTest.php b/test/EndToEnd/Version10/TestCase/WithTearDownAfterClass/SleeperTest.php index 914c324d..991f3ecd 100644 --- a/test/EndToEnd/Version10/TestCase/WithTearDownAfterClass/SleeperTest.php +++ b/test/EndToEnd/Version10/TestCase/WithTearDownAfterClass/SleeperTest.php @@ -53,7 +53,7 @@ public static function provideMillisecondsGreaterThanMaximumDurationFromXmlConfi $values = \range( 200, 300, - 100, + 100 ); foreach ($values as $value) { diff --git a/test/EndToEnd/Version11/Configuration/Defaults/SleeperTest.php b/test/EndToEnd/Version11/Configuration/Defaults/SleeperTest.php index 35055d6f..537f89e0 100644 --- a/test/EndToEnd/Version11/Configuration/Defaults/SleeperTest.php +++ b/test/EndToEnd/Version11/Configuration/Defaults/SleeperTest.php @@ -48,7 +48,7 @@ public static function provideMillisecondsGreaterThanDefaultMaximumDuration(): i $values = \range( 600, 1600, - 100, + 100 ); foreach ($values as $value) { diff --git a/test/EndToEnd/Version11/Configuration/MaximumCount/SleeperTest.php b/test/EndToEnd/Version11/Configuration/MaximumCount/SleeperTest.php index 21c3227e..8c96de04 100644 --- a/test/EndToEnd/Version11/Configuration/MaximumCount/SleeperTest.php +++ b/test/EndToEnd/Version11/Configuration/MaximumCount/SleeperTest.php @@ -48,7 +48,7 @@ public static function provideMillisecondsGreaterThanDefaultMaximumDuration(): i $values = \range( 600, 1000, - 100, + 100 ); foreach ($values as $value) { diff --git a/test/EndToEnd/Version11/Configuration/MaximumDuration/SleeperTest.php b/test/EndToEnd/Version11/Configuration/MaximumDuration/SleeperTest.php index 66e6fe55..4407a389 100644 --- a/test/EndToEnd/Version11/Configuration/MaximumDuration/SleeperTest.php +++ b/test/EndToEnd/Version11/Configuration/MaximumDuration/SleeperTest.php @@ -48,7 +48,7 @@ public static function provideMillisecondsGreaterThanMaximumDurationFromXmlConfi $values = \range( 200, 1200, - 100, + 100 ); foreach ($values as $value) { diff --git a/test/EndToEnd/Version11/TestCase/Bare/SleeperTest.php b/test/EndToEnd/Version11/TestCase/Bare/SleeperTest.php index 799bc678..13305a4c 100644 --- a/test/EndToEnd/Version11/TestCase/Bare/SleeperTest.php +++ b/test/EndToEnd/Version11/TestCase/Bare/SleeperTest.php @@ -48,7 +48,7 @@ public static function provideMillisecondsGreaterThanMaximumDurationFromXmlConfi $values = \range( 200, 300, - 100, + 100 ); foreach ($values as $value) { diff --git a/test/EndToEnd/Version11/TestCase/Combination/SleeperTest.php b/test/EndToEnd/Version11/TestCase/Combination/SleeperTest.php index 762d251e..c9faa634 100644 --- a/test/EndToEnd/Version11/TestCase/Combination/SleeperTest.php +++ b/test/EndToEnd/Version11/TestCase/Combination/SleeperTest.php @@ -102,7 +102,7 @@ public static function provideMillisecondsGreaterThanMaximumDurationFromXmlConfi $values = \range( 200, 300, - 100, + 100 ); foreach ($values as $value) { diff --git a/test/EndToEnd/Version11/TestCase/WithAfterAttribute/SleeperTest.php b/test/EndToEnd/Version11/TestCase/WithAfterAttribute/SleeperTest.php index ce86643e..ae4dc7d2 100644 --- a/test/EndToEnd/Version11/TestCase/WithAfterAttribute/SleeperTest.php +++ b/test/EndToEnd/Version11/TestCase/WithAfterAttribute/SleeperTest.php @@ -54,7 +54,7 @@ public static function provideMillisecondsGreaterThanMaximumDurationFromXmlConfi $values = \range( 200, 300, - 100, + 100 ); foreach ($values as $value) { diff --git a/test/EndToEnd/Version11/TestCase/WithAfterClassAttribute/SleeperTest.php b/test/EndToEnd/Version11/TestCase/WithAfterClassAttribute/SleeperTest.php index fa783778..89e1a2f3 100644 --- a/test/EndToEnd/Version11/TestCase/WithAfterClassAttribute/SleeperTest.php +++ b/test/EndToEnd/Version11/TestCase/WithAfterClassAttribute/SleeperTest.php @@ -54,7 +54,7 @@ public static function provideMillisecondsGreaterThanMaximumDurationFromXmlConfi $values = \range( 200, 300, - 100, + 100 ); foreach ($values as $value) { diff --git a/test/EndToEnd/Version11/TestCase/WithAssertPostConditions/SleeperTest.php b/test/EndToEnd/Version11/TestCase/WithAssertPostConditions/SleeperTest.php index e2f1a9f9..41cb8c25 100644 --- a/test/EndToEnd/Version11/TestCase/WithAssertPostConditions/SleeperTest.php +++ b/test/EndToEnd/Version11/TestCase/WithAssertPostConditions/SleeperTest.php @@ -53,7 +53,7 @@ public static function provideMillisecondsGreaterThanMaximumDurationFromXmlConfi $values = \range( 200, 300, - 100, + 100 ); foreach ($values as $value) { diff --git a/test/EndToEnd/Version11/TestCase/WithAssertPreConditions/SleeperTest.php b/test/EndToEnd/Version11/TestCase/WithAssertPreConditions/SleeperTest.php index 230529d8..805c1057 100644 --- a/test/EndToEnd/Version11/TestCase/WithAssertPreConditions/SleeperTest.php +++ b/test/EndToEnd/Version11/TestCase/WithAssertPreConditions/SleeperTest.php @@ -53,7 +53,7 @@ public static function provideMillisecondsGreaterThanMaximumDurationFromXmlConfi $values = \range( 200, 300, - 100, + 100 ); foreach ($values as $value) { diff --git a/test/EndToEnd/Version11/TestCase/WithBeforeAttribute/SleeperTest.php b/test/EndToEnd/Version11/TestCase/WithBeforeAttribute/SleeperTest.php index b99dd53c..05ebd44e 100644 --- a/test/EndToEnd/Version11/TestCase/WithBeforeAttribute/SleeperTest.php +++ b/test/EndToEnd/Version11/TestCase/WithBeforeAttribute/SleeperTest.php @@ -54,7 +54,7 @@ public static function provideMillisecondsGreaterThanMaximumDurationFromXmlConfi $values = \range( 200, 300, - 100, + 100 ); foreach ($values as $value) { diff --git a/test/EndToEnd/Version11/TestCase/WithBeforeClassAttribute/SleeperTest.php b/test/EndToEnd/Version11/TestCase/WithBeforeClassAttribute/SleeperTest.php index d1c5360e..c6377926 100644 --- a/test/EndToEnd/Version11/TestCase/WithBeforeClassAttribute/SleeperTest.php +++ b/test/EndToEnd/Version11/TestCase/WithBeforeClassAttribute/SleeperTest.php @@ -54,7 +54,7 @@ public static function provideMillisecondsGreaterThanMaximumDurationFromXmlConfi $values = \range( 200, 300, - 100, + 100 ); foreach ($values as $value) { diff --git a/test/EndToEnd/Version11/TestCase/WithDataProvider/SleeperTest.php b/test/EndToEnd/Version11/TestCase/WithDataProvider/SleeperTest.php index 5bf3f1c0..9363176d 100644 --- a/test/EndToEnd/Version11/TestCase/WithDataProvider/SleeperTest.php +++ b/test/EndToEnd/Version11/TestCase/WithDataProvider/SleeperTest.php @@ -48,7 +48,7 @@ public static function provideMillisecondsGreaterThanMaximumDurationFromXmlConfi $values = \range( 200, 300, - 100, + 100 ); foreach ($values as $value) { diff --git a/test/EndToEnd/Version11/TestCase/WithSetUp/SleeperTest.php b/test/EndToEnd/Version11/TestCase/WithSetUp/SleeperTest.php index 69d57a85..eea48438 100644 --- a/test/EndToEnd/Version11/TestCase/WithSetUp/SleeperTest.php +++ b/test/EndToEnd/Version11/TestCase/WithSetUp/SleeperTest.php @@ -53,7 +53,7 @@ public static function provideMillisecondsGreaterThanMaximumDurationFromXmlConfi $values = \range( 200, 300, - 100, + 100 ); foreach ($values as $value) { diff --git a/test/EndToEnd/Version11/TestCase/WithSetUpBeforeClass/SleeperTest.php b/test/EndToEnd/Version11/TestCase/WithSetUpBeforeClass/SleeperTest.php index 4902594e..2c8ba00e 100644 --- a/test/EndToEnd/Version11/TestCase/WithSetUpBeforeClass/SleeperTest.php +++ b/test/EndToEnd/Version11/TestCase/WithSetUpBeforeClass/SleeperTest.php @@ -53,7 +53,7 @@ public static function provideMillisecondsGreaterThanMaximumDurationFromXmlConfi $values = \range( 200, 300, - 100, + 100 ); foreach ($values as $value) { diff --git a/test/EndToEnd/Version11/TestCase/WithTearDown/SleeperTest.php b/test/EndToEnd/Version11/TestCase/WithTearDown/SleeperTest.php index ad2bbf99..288794f6 100644 --- a/test/EndToEnd/Version11/TestCase/WithTearDown/SleeperTest.php +++ b/test/EndToEnd/Version11/TestCase/WithTearDown/SleeperTest.php @@ -53,7 +53,7 @@ public static function provideMillisecondsGreaterThanMaximumDurationFromXmlConfi $values = \range( 200, 300, - 100, + 100 ); foreach ($values as $value) { diff --git a/test/EndToEnd/Version11/TestCase/WithTearDownAfterClass/SleeperTest.php b/test/EndToEnd/Version11/TestCase/WithTearDownAfterClass/SleeperTest.php index a37ad0b8..d3995113 100644 --- a/test/EndToEnd/Version11/TestCase/WithTearDownAfterClass/SleeperTest.php +++ b/test/EndToEnd/Version11/TestCase/WithTearDownAfterClass/SleeperTest.php @@ -53,7 +53,7 @@ public static function provideMillisecondsGreaterThanMaximumDurationFromXmlConfi $values = \range( 200, 300, - 100, + 100 ); foreach ($values as $value) { diff --git a/test/Fixture/Sleeper.php b/test/Fixture/Sleeper.php index 586beea4..a0b6990d 100644 --- a/test/Fixture/Sleeper.php +++ b/test/Fixture/Sleeper.php @@ -33,7 +33,7 @@ public static function fromMilliseconds(int $milliseconds): self if (0 > $milliseconds) { throw new \InvalidArgumentException(\sprintf( 'Value for milliseconds should be greater than or equal to 0, but %d is not.', - $milliseconds, + $milliseconds )); } diff --git a/test/Unit/Collector/DefaultCollectorTest.php b/test/Unit/Collector/DefaultCollectorTest.php index 0b862d79..b5e9ab4f 100644 --- a/test/Unit/Collector/DefaultCollectorTest.php +++ b/test/Unit/Collector/DefaultCollectorTest.php @@ -38,13 +38,13 @@ public function testCollectCollectsSlowTests(): void $one = SlowTest::create( TestIdentifier::fromString($faker->word()), Duration::fromMilliseconds($faker->numberBetween(0)), - Duration::fromMilliseconds($faker->numberBetween(0)), + Duration::fromMilliseconds($faker->numberBetween(0)) ); $two = SlowTest::create( TestIdentifier::fromString($faker->word()), Duration::fromMilliseconds($faker->numberBetween(0)), - Duration::fromMilliseconds($faker->numberBetween(0)), + Duration::fromMilliseconds($faker->numberBetween(0)) ); $collector = new Collector\DefaultCollector(); @@ -67,16 +67,16 @@ public function testCollectCollectsSlowerTestWithSameTestIdentifier(): void $one = SlowTest::create( TestIdentifier::fromString($faker->word()), Duration::fromMilliseconds($faker->numberBetween(0)), - Duration::fromMilliseconds($faker->numberBetween(0, 999999999 - 1)), + Duration::fromMilliseconds($faker->numberBetween(0, 999999999 - 1)) ); $two = SlowTest::create( $one->testIdentifier(), Duration::fromSecondsAndNanoseconds( $one->duration()->seconds(), - $one->duration()->nanoseconds() + 1, + $one->duration()->nanoseconds() + 1 ), - $one->maximumDuration(), + $one->maximumDuration() ); $collector = new Collector\DefaultCollector(); @@ -98,16 +98,16 @@ public function testCollectDoesNotCollectFasterTestWithSameTestIdentifier(): voi $one = SlowTest::create( TestIdentifier::fromString($faker->word()), Duration::fromMilliseconds($faker->numberBetween(0)), - Duration::fromMilliseconds($faker->numberBetween(1, 999999999)), + Duration::fromMilliseconds($faker->numberBetween(1, 999999999)) ); $two = SlowTest::create( $one->testIdentifier(), Duration::fromSecondsAndNanoseconds( $one->duration()->seconds(), - $one->duration()->nanoseconds() - 1, + $one->duration()->nanoseconds() - 1 ), - $one->maximumDuration(), + $one->maximumDuration() ); $collector = new Collector\DefaultCollector(); diff --git a/test/Unit/Comparator/DurationComparatorTest.php b/test/Unit/Comparator/DurationComparatorTest.php index ba3d65d1..0ca97ea0 100644 --- a/test/Unit/Comparator/DurationComparatorTest.php +++ b/test/Unit/Comparator/DurationComparatorTest.php @@ -28,12 +28,12 @@ public function testReturnsMinusOneWhenOneIsLessThanTwo(): void { $one = Duration::fromSecondsAndNanoseconds( 5, - 0, + 0 ); $two = Duration::fromSecondsAndNanoseconds( 5, - 1, + 1 ); $comparator = new Comparator\DurationComparator(); @@ -45,12 +45,12 @@ public function testReturnsZeroWhenOneEqualsTwo(): void { $one = Duration::fromSecondsAndNanoseconds( 5, - 0, + 0 ); $two = Duration::fromSecondsAndNanoseconds( 5, - 0, + 0 ); $comparator = new Comparator\DurationComparator(); @@ -62,12 +62,12 @@ public function testReturnsPlusOneWhenOneIsGreaterThanTwo(): void { $one = Duration::fromSecondsAndNanoseconds( 5, - 1, + 1 ); $two = Duration::fromSecondsAndNanoseconds( 5, - 0, + 0 ); $comparator = new Comparator\DurationComparator(); diff --git a/test/Unit/Console/ColorTest.php b/test/Unit/Console/ColorTest.php index e16224c9..80e5d7a8 100644 --- a/test/Unit/Console/ColorTest.php +++ b/test/Unit/Console/ColorTest.php @@ -41,6 +41,7 @@ public function testDimReturnsDimmedStringWhenItIsNotWhitespaceOnly(): void $expected = <<seconds()); @@ -188,15 +188,15 @@ public static function provideDurationDurationAndResultOfAddingDurations(): iter 'more-than-999999999-nanoseconds' => [ Duration::fromSecondsAndNanoseconds( 1, - 999999999, + 999999999 ), Duration::fromSecondsAndNanoseconds( 2, - 123456789, + 123456789 ), Duration::fromSecondsAndNanoseconds( 4, - 123456788, + 123456788 ), ], ]; @@ -214,12 +214,12 @@ public function testIsLessThanReturnsFalseWhenSecondsAreGreater(): void { $one = Duration::fromSecondsAndNanoseconds( 123, - 456, + 456 ); $two = Duration::fromSecondsAndNanoseconds( 122, - 456, + 456 ); self::assertFalse($one->isLessThan($two)); @@ -229,12 +229,12 @@ public function testIsLessThanReturnsFalseWhenSecondsAreEqualAndNanosecondsAreGr { $one = Duration::fromSecondsAndNanoseconds( 123, - 456, + 456 ); $two = Duration::fromSecondsAndNanoseconds( 123, - 455, + 455 ); self::assertFalse($one->isLessThan($two)); @@ -244,12 +244,12 @@ public function testIsLessThanReturnsFalseWhenValuesAreSame(): void { $one = Duration::fromSecondsAndNanoseconds( 123, - 456, + 456 ); $two = Duration::fromSecondsAndNanoseconds( 123, - 456, + 456 ); self::assertFalse($one->isLessThan($two)); @@ -259,12 +259,12 @@ public function testIsLessThanReturnsTrueWhenSecondsAreLess(): void { $one = Duration::fromSecondsAndNanoseconds( 123, - 456, + 456 ); $two = Duration::fromSecondsAndNanoseconds( 124, - 456, + 456 ); self::assertTrue($one->isLessThan($two)); @@ -274,12 +274,12 @@ public function testIsLessThanReturnsTrueWhenSecondsAreEqualAndNanosecondsAreLes { $one = Duration::fromSecondsAndNanoseconds( 123, - 456, + 456 ); $two = Duration::fromSecondsAndNanoseconds( 123, - 457, + 457 ); self::assertTrue($one->isLessThan($two)); @@ -289,12 +289,12 @@ public function testIsGreaterThanReturnsFalseWhenSecondsAreLess(): void { $one = Duration::fromSecondsAndNanoseconds( 123, - 456, + 456 ); $two = Duration::fromSecondsAndNanoseconds( 124, - 456, + 456 ); self::assertFalse($one->isGreaterThan($two)); @@ -304,12 +304,12 @@ public function testIsGreaterThanReturnsFalseWhenSecondsAreEqualAndNanosecondsAr { $one = Duration::fromSecondsAndNanoseconds( 123, - 456, + 456 ); $two = Duration::fromSecondsAndNanoseconds( 123, - 457, + 457 ); self::assertFalse($one->isGreaterThan($two)); @@ -319,12 +319,12 @@ public function testIsGreaterThanReturnsFalseWhenValuesAreSame(): void { $one = Duration::fromSecondsAndNanoseconds( 123, - 456, + 456 ); $two = Duration::fromSecondsAndNanoseconds( 123, - 456, + 456 ); self::assertFalse($one->isGreaterThan($two)); @@ -334,12 +334,12 @@ public function testIsGreaterThanReturnsTrueWhenSecondsAreGreater(): void { $one = Duration::fromSecondsAndNanoseconds( 123, - 456, + 456 ); $two = Duration::fromSecondsAndNanoseconds( 122, - 456, + 456 ); self::assertTrue($one->isGreaterThan($two)); @@ -349,12 +349,12 @@ public function testIsGreaterThanReturnsTrueWhenSecondsAreEqualAndNanosecondsAre { $one = Duration::fromSecondsAndNanoseconds( 123, - 456, + 456 ); $two = Duration::fromSecondsAndNanoseconds( 123, - 455, + 455 ); self::assertTrue($one->isGreaterThan($two)); diff --git a/test/Unit/Exception/InvalidCountTest.php b/test/Unit/Exception/InvalidCountTest.php index 16c8f08e..c5de9dc1 100644 --- a/test/Unit/Exception/InvalidCountTest.php +++ b/test/Unit/Exception/InvalidCountTest.php @@ -32,7 +32,7 @@ public function testNotGreaterThanZeroReturnsException(): void $message = \sprintf( 'Value should be greater than 0, but %d is not.', - $value, + $value ); self::assertSame($message, $exception->getMessage()); diff --git a/test/Unit/Exception/InvalidMillisecondsTest.php b/test/Unit/Exception/InvalidMillisecondsTest.php index e10378fa..4d6c5840 100644 --- a/test/Unit/Exception/InvalidMillisecondsTest.php +++ b/test/Unit/Exception/InvalidMillisecondsTest.php @@ -32,7 +32,7 @@ public function testNotGreaterThanZeroReturnsException(): void $message = \sprintf( 'Value should be greater than 0, but %d is not.', - $value, + $value ); self::assertSame($message, $exception->getMessage()); diff --git a/test/Unit/Exception/InvalidNanosecondsTest.php b/test/Unit/Exception/InvalidNanosecondsTest.php index d58f6331..69d6005b 100644 --- a/test/Unit/Exception/InvalidNanosecondsTest.php +++ b/test/Unit/Exception/InvalidNanosecondsTest.php @@ -32,7 +32,7 @@ public function testNotGreaterThanOrEqualToZeroReturnsException(): void $message = \sprintf( 'Value should be greater than or equal to 0, but %d is not.', - $value, + $value ); self::assertSame($message, $exception->getMessage()); @@ -47,13 +47,13 @@ public function testNotLessThanOrEqualToReturnsException(): void $exception = Exception\InvalidNanoseconds::notLessThanOrEqualTo( $one, - $two, + $two ); $message = \sprintf( 'Value should be less than or equal to %d, but %d is not.', $two, - $one, + $one ); self::assertSame($message, $exception->getMessage()); diff --git a/test/Unit/Exception/InvalidSecondsTest.php b/test/Unit/Exception/InvalidSecondsTest.php index 9d370032..6ca2c8fd 100644 --- a/test/Unit/Exception/InvalidSecondsTest.php +++ b/test/Unit/Exception/InvalidSecondsTest.php @@ -32,7 +32,7 @@ public function testNotGreaterThanZeroReturnsException(): void $message = \sprintf( 'Value should be greater than 0, but %d is not.', - $value, + $value ); self::assertSame($message, $exception->getMessage()); @@ -46,7 +46,7 @@ public function testNotGreaterThanOrEqualToZeroReturnsException(): void $message = \sprintf( 'Value should be greater than or equal to 0, but %d is not.', - $value, + $value ); self::assertSame($message, $exception->getMessage()); diff --git a/test/Unit/Exception/PhaseNotStartedTest.php b/test/Unit/Exception/PhaseNotStartedTest.php index 26b53786..f39e8697 100644 --- a/test/Unit/Exception/PhaseNotStartedTest.php +++ b/test/Unit/Exception/PhaseNotStartedTest.php @@ -35,7 +35,7 @@ public function testFromPhaseIdentifierReturnsException(): void $message = \sprintf( 'Phase identified by "%s" has not been started.', - $phaseIdentifier->toString(), + $phaseIdentifier->toString() ); self::assertSame($message, $exception->getMessage()); diff --git a/test/Unit/Formatter/DefaultDurationFormatterTest.php b/test/Unit/Formatter/DefaultDurationFormatterTest.php index 634669a4..785f99d4 100644 --- a/test/Unit/Formatter/DefaultDurationFormatterTest.php +++ b/test/Unit/Formatter/DefaultDurationFormatterTest.php @@ -45,56 +45,56 @@ public static function provideDurationAndFormattedDuration(): iterable 'zero' => [ Duration::fromSecondsAndNanoseconds( 0, - 0, + 0 ), '0.000', ], 'milliseconds' => [ Duration::fromSecondsAndNanoseconds( 0, - 123999000, + 123999000 ), '0.123', ], 'seconds-digits-one' => [ Duration::fromSecondsAndNanoseconds( 1, - 234456789, + 234456789 ), '1.234', ], 'seconds-digits-two' => [ Duration::fromSecondsAndNanoseconds( 12, - 345678912, + 345678912 ), '12.345', ], 'minutes-digits-one' => [ Duration::fromSecondsAndNanoseconds( 1 * 60 + 23, - 456789012, + 456789012 ), '1:23.456', ], 'minutes-digits-two' => [ Duration::fromSecondsAndNanoseconds( 12 * 60 + 34, - 567890123, + 567890123 ), '12:34.567', ], 'hours-digits-one' => [ Duration::fromSecondsAndNanoseconds( 60 * 60 + 23 * 60 + 45, - 567890123, + 567890123 ), '1:23:45.567', ], 'hours-digits-two' => [ Duration::fromSecondsAndNanoseconds( 12 * 60 * 60 + 34 * 60 + 56, - 789012345, + 789012345 ), '12:34:56.789', ], diff --git a/test/Unit/PhaseStartTest.php b/test/Unit/PhaseStartTest.php index 167c1c47..54b4e527 100644 --- a/test/Unit/PhaseStartTest.php +++ b/test/Unit/PhaseStartTest.php @@ -36,12 +36,12 @@ public function testCreateReturnsPhaseStart(): void $phaseIdentifier = PhaseIdentifier::fromString($faker->word()); $startTime = Time::fromSecondsAndNanoseconds( $faker->numberBetween(0, 999), - $faker->numberBetween(0, 999999999), + $faker->numberBetween(0, 999999999) ); $phaseStart = PhaseStart::create( $phaseIdentifier, - $startTime, + $startTime ); self::assertSame($phaseIdentifier, $phaseStart->phaseIdentifier()); diff --git a/test/Unit/PhaseTest.php b/test/Unit/PhaseTest.php index 890eb816..d5771a11 100644 --- a/test/Unit/PhaseTest.php +++ b/test/Unit/PhaseTest.php @@ -38,17 +38,17 @@ public function testCreateReturnsPhase(): void $phaseIdentifier = PhaseIdentifier::fromString($faker->word()); $startTime = Time::fromSecondsAndNanoseconds( $faker->numberBetween(0, 100), - $faker->numberBetween(0, 999999999), + $faker->numberBetween(0, 999999999) ); $stopTime = Time::fromSecondsAndNanoseconds( $faker->numberBetween(101, 999), - $faker->numberBetween(0, 999999999), + $faker->numberBetween(0, 999999999) ); $phase = Phase::create( $phaseIdentifier, $startTime, - $stopTime, + $stopTime ); self::assertSame($phaseIdentifier, $phase->phaseIdentifier()); diff --git a/test/Unit/Reporter/DefaultReporterTest.php b/test/Unit/Reporter/DefaultReporterTest.php index 7ce63fef..82d1a728 100644 --- a/test/Unit/Reporter/DefaultReporterTest.php +++ b/test/Unit/Reporter/DefaultReporterTest.php @@ -43,7 +43,7 @@ public function testReportReturnsEmptyStringWhenThereAreNoSlowTests(): void $reporter = new Reporter\DefaultReporter( new Formatter\DefaultDurationFormatter(), Duration::fromMilliseconds($faker->numberBetween(0)), - Count::fromInt($faker->numberBetween(1)), + Count::fromInt($faker->numberBetween(1)) ); $report = $reporter->report(); @@ -65,7 +65,7 @@ public function testReportReturnsReportWhenThereAreFewerSlowTestsThanMaximumCoun $reporter = new Reporter\DefaultReporter( new Formatter\DefaultDurationFormatter(), $maximumDuration, - $maximumCount, + $maximumCount ); $report = $reporter->report(...$slowTests); @@ -84,14 +84,15 @@ public static function provideExpectedReportMaximumDurationMaximumCountAndSlowTe Detected 1 test where the duration exceeded the maximum duration. 1. 0.300 (0.100) FooTest::test -TXT, +TXT + , Duration::fromMilliseconds(500), Count::fromInt(1), [ SlowTest::create( TestIdentifier::fromString('FooTest::test'), Duration::fromMilliseconds(300), - Duration::fromMilliseconds(100), + Duration::fromMilliseconds(100) ), ], ], @@ -101,19 +102,20 @@ public static function provideExpectedReportMaximumDurationMaximumCountAndSlowTe 1. 0.300 (0.100) FooTest::test 2. 0.275 (0.100) BarTest::test -TXT, +TXT + , Duration::fromMilliseconds(500), Count::fromInt(2), [ SlowTest::create( TestIdentifier::fromString('FooTest::test'), Duration::fromMilliseconds(300), - Duration::fromMilliseconds(100), + Duration::fromMilliseconds(100) ), SlowTest::create( TestIdentifier::fromString('BarTest::test'), Duration::fromMilliseconds(275), - Duration::fromMilliseconds(100), + Duration::fromMilliseconds(100) ), ], ], @@ -124,24 +126,25 @@ public static function provideExpectedReportMaximumDurationMaximumCountAndSlowTe 1. 0.300 (0.100) FooTest::test 2. 0.275 (0.100) BarTest::test 3. 0.250 (0.100) BazTest::test -TXT, +TXT + , Duration::fromMilliseconds(500), Count::fromInt(3), [ SlowTest::create( TestIdentifier::fromString('FooTest::test'), Duration::fromMilliseconds(300), - Duration::fromMilliseconds(100), + Duration::fromMilliseconds(100) ), SlowTest::create( TestIdentifier::fromString('BarTest::test'), Duration::fromMilliseconds(275), - Duration::fromMilliseconds(100), + Duration::fromMilliseconds(100) ), SlowTest::create( TestIdentifier::fromString('BazTest::test'), Duration::fromMilliseconds(250), - Duration::fromMilliseconds(100), + Duration::fromMilliseconds(100) ), ], ], @@ -152,24 +155,25 @@ public static function provideExpectedReportMaximumDurationMaximumCountAndSlowTe 1. 0.300 (0.100) FooTest::test 2. 0.275 (0.100) BarTest::test 3. 0.250 (0.100) BazTest::test -TXT, +TXT + , Duration::fromMilliseconds(500), Count::fromInt(3), [ SlowTest::create( TestIdentifier::fromString('BazTest::test'), Duration::fromMilliseconds(250), - Duration::fromMilliseconds(100), + Duration::fromMilliseconds(100) ), SlowTest::create( TestIdentifier::fromString('BarTest::test'), Duration::fromMilliseconds(275), - Duration::fromMilliseconds(100), + Duration::fromMilliseconds(100) ), SlowTest::create( TestIdentifier::fromString('FooTest::test'), Duration::fromMilliseconds(300), - Duration::fromMilliseconds(100), + Duration::fromMilliseconds(100) ), ], ], @@ -187,59 +191,60 @@ public static function provideExpectedReportMaximumDurationMaximumCountAndSlowTe 8. 0.130 ( 0.100) GarplyTest::test 9. 0.120 ( 0.100) WaldoTest::test 10. 0.110 ( 0.100) FredTest::test -TXT, +TXT + , Duration::fromMilliseconds(500), Count::fromInt(10), [ SlowTest::create( TestIdentifier::fromString('FooTest::test'), Duration::fromMilliseconds(1250000), - Duration::fromMilliseconds(1000000), + Duration::fromMilliseconds(1000000) ), SlowTest::create( TestIdentifier::fromString('BarTest::test'), Duration::fromMilliseconds(575000), - Duration::fromMilliseconds(500000), + Duration::fromMilliseconds(500000) ), SlowTest::create( TestIdentifier::fromString('BazTest::test'), Duration::fromMilliseconds(250), - Duration::fromMilliseconds(100), + Duration::fromMilliseconds(100) ), SlowTest::create( TestIdentifier::fromString('QuxTest::test'), Duration::fromMilliseconds(200), - Duration::fromMilliseconds(100), + Duration::fromMilliseconds(100) ), SlowTest::create( TestIdentifier::fromString('QuuxTest::test'), Duration::fromMilliseconds(160), - Duration::fromMilliseconds(100), + Duration::fromMilliseconds(100) ), SlowTest::create( TestIdentifier::fromString('CorgeTest::test'), Duration::fromMilliseconds(150), - Duration::fromMilliseconds(100), + Duration::fromMilliseconds(100) ), SlowTest::create( TestIdentifier::fromString('GraultTest::test'), Duration::fromMilliseconds(140), - Duration::fromMilliseconds(100), + Duration::fromMilliseconds(100) ), SlowTest::create( TestIdentifier::fromString('GarplyTest::test'), Duration::fromMilliseconds(130), - Duration::fromMilliseconds(100), + Duration::fromMilliseconds(100) ), SlowTest::create( TestIdentifier::fromString('WaldoTest::test'), Duration::fromMilliseconds(120), - Duration::fromMilliseconds(100), + Duration::fromMilliseconds(100) ), SlowTest::create( TestIdentifier::fromString('FredTest::test'), Duration::fromMilliseconds(110), - Duration::fromMilliseconds(100), + Duration::fromMilliseconds(100) ), ], ], @@ -250,19 +255,20 @@ public static function provideExpectedReportMaximumDurationMaximumCountAndSlowTe 1. 0.300 (0.100) FooTest::test There is 1 additional slow test that is not listed here. -TXT, +TXT + , Duration::fromMilliseconds(500), Count::fromInt(1), [ SlowTest::create( TestIdentifier::fromString('FooTest::test'), Duration::fromMilliseconds(300), - Duration::fromMilliseconds(100), + Duration::fromMilliseconds(100) ), SlowTest::create( TestIdentifier::fromString('BarTest::test'), Duration::fromMilliseconds(275), - Duration::fromMilliseconds(100), + Duration::fromMilliseconds(100) ), ], ], @@ -273,24 +279,25 @@ public static function provideExpectedReportMaximumDurationMaximumCountAndSlowTe 1. 0.300 (0.100) FooTest::test There are 2 additional slow tests that are not listed here. -TXT, +TXT + , Duration::fromMilliseconds(500), Count::fromInt(1), [ SlowTest::create( TestIdentifier::fromString('FooTest::test'), Duration::fromMilliseconds(300), - Duration::fromMilliseconds(100), + Duration::fromMilliseconds(100) ), SlowTest::create( TestIdentifier::fromString('BarTest::test'), Duration::fromMilliseconds(275), - Duration::fromMilliseconds(100), + Duration::fromMilliseconds(100) ), SlowTest::create( TestIdentifier::fromString('BazTest::test'), Duration::fromMilliseconds(250), - Duration::fromMilliseconds(100), + Duration::fromMilliseconds(100) ), ], ], diff --git a/test/Unit/SlowTestTest.php b/test/Unit/SlowTestTest.php index d0c35b8e..3f491540 100644 --- a/test/Unit/SlowTestTest.php +++ b/test/Unit/SlowTestTest.php @@ -40,7 +40,7 @@ public function testCreateReturnsSlowTest(): void $slowTest = SlowTest::create( $testIdentifier, $duration, - $maximumDuration, + $maximumDuration ); self::assertSame($testIdentifier, $slowTest->testIdentifier()); diff --git a/test/Unit/TimeKeeperTest.php b/test/Unit/TimeKeeperTest.php index 9d406e99..97117dcd 100644 --- a/test/Unit/TimeKeeperTest.php +++ b/test/Unit/TimeKeeperTest.php @@ -41,7 +41,7 @@ public function testStopThrowsPhaseNotStartedExceptionWhenPhaseHasNotBeenStarted $phaseIdentifier = PhaseIdentifier::fromString($faker->word()); $stopTime = Time::fromSecondsAndNanoseconds( $faker->numberBetween(0), - $faker->numberBetween(0, 999999999), + $faker->numberBetween(0, 999999999) ); $timeKeeper = new TimeKeeper(); @@ -50,7 +50,7 @@ public function testStopThrowsPhaseNotStartedExceptionWhenPhaseHasNotBeenStarted $timeKeeper->stop( $phaseIdentifier, - $stopTime, + $stopTime ); } @@ -61,23 +61,23 @@ public function testStopReturnsPhaseWhenPhaseHasBeenStarted(): void $phaseIdentifier = PhaseIdentifier::fromString($faker->word()); $startTime = Time::fromSecondsAndNanoseconds( $faker->numberBetween(0), - $faker->numberBetween(0, 999999999 - 1), + $faker->numberBetween(0, 999999999 - 1) ); $stopTime = Time::fromSecondsAndNanoseconds( $faker->numberBetween($startTime->seconds() + 1), - $faker->numberBetween($startTime->nanoseconds() + 1, 999999999), + $faker->numberBetween($startTime->nanoseconds() + 1, 999999999) ); $timeKeeper = new TimeKeeper(); $timeKeeper->start( $phaseIdentifier, - $startTime, + $startTime ); $phase = $timeKeeper->stop( $phaseIdentifier, - $stopTime, + $stopTime ); self::assertSame($phaseIdentifier, $phase->phaseIdentifier()); diff --git a/test/Unit/TimeTest.php b/test/Unit/TimeTest.php index 6a3fe51c..bb25e755 100644 --- a/test/Unit/TimeTest.php +++ b/test/Unit/TimeTest.php @@ -37,7 +37,7 @@ public function testFromSecondsAndNanosecondsRejectsNegativeSeconds(): void Time::fromSecondsAndNanoseconds( -1, - 0, + 0 ); } @@ -47,7 +47,7 @@ public function testFromSecondsAndNanosecondsRejectsNegativeNanoseconds(): void Time::fromSecondsAndNanoseconds( 0, - -1, + -1 ); } @@ -57,7 +57,7 @@ public function testFromSecondsAndNanosecondsRejectsNanosecondsGreaterThan999999 Time::fromSecondsAndNanoseconds( 0, - 1000000000, + 1000000000 ); } @@ -70,7 +70,7 @@ public function testFromSecondsAndNanosecondsReturnsTime(): void $time = Time::fromSecondsAndNanoseconds( $seconds, - $nanoseconds, + $nanoseconds ); self::assertSame($seconds, $time->seconds()); @@ -88,12 +88,12 @@ public function testDurationRejectsStartGreaterThanEnd( ): void { $start = Time::fromSecondsAndNanoseconds( $startSeconds, - $startNanoseconds, + $startNanoseconds ); $end = Time::fromSecondsAndNanoseconds( $endSeconds, - $endNanoseconds, + $endNanoseconds ); $this->expectException(Exception\InvalidStart::class); @@ -149,12 +149,12 @@ public function testDurationReturnsDifferenceBetweenEndAndStart( ): void { $start = Time::fromSecondsAndNanoseconds( $startSeconds, - $startNanoseconds, + $startNanoseconds ); $end = Time::fromSecondsAndNanoseconds( $endSeconds, - $endNanoseconds, + $endNanoseconds ); self::assertEquals($duration, $end->duration($start)); @@ -173,7 +173,7 @@ public static function provideStartEndAndDuration(): iterable 50, Duration::fromSecondsAndNanoseconds( 0, - 0, + 0 ), ], 'start-smaller-than-end' => [ @@ -183,7 +183,7 @@ public static function provideStartEndAndDuration(): iterable 70, Duration::fromSecondsAndNanoseconds( 2, - 20, + 20 ), ], 'start-nanoseconds-greater-than-end-nanoseconds' => [ @@ -193,7 +193,7 @@ public static function provideStartEndAndDuration(): iterable 30, Duration::fromSecondsAndNanoseconds( 1, - 999999980, + 999999980 ), ], ]; diff --git a/test/Unit/Version/MajorTest.php b/test/Unit/Version/MajorTest.php index d811d145..d96d64e2 100644 --- a/test/Unit/Version/MajorTest.php +++ b/test/Unit/Version/MajorTest.php @@ -33,7 +33,7 @@ public function testFromIntRejectsInvalidValue(int $value): void $this->expectException(\InvalidArgumentException::class); $this->expectExceptionMessage(\sprintf( 'Value "%d" does not appear to be a valid value for a major version.', - $value, + $value )); Version\Major::fromInt($value); diff --git a/test/Unit/Version/SeriesTest.php b/test/Unit/Version/SeriesTest.php index 2d0ce228..94cc3063 100644 --- a/test/Unit/Version/SeriesTest.php +++ b/test/Unit/Version/SeriesTest.php @@ -45,7 +45,7 @@ public function testFromStringRejectsInvalidValue(string $value): void $this->expectException(\InvalidArgumentException::class); $this->expectExceptionMessage(\sprintf( 'Value "%s" does not appear to be a valid value for a semantic version.', - $value, + $value )); Version\Series::fromString($value); @@ -81,14 +81,14 @@ public static function provideInvalidValue(): iterable $key = \sprintf( '%s-%s', $invalidMajorKey, - $invalidMinorKey, + $invalidMinorKey ); yield $key => [ \sprintf( '%s.%s', $invalidMajor, - $invalidMinor, + $invalidMinor ), ]; } @@ -119,7 +119,7 @@ public static function provideInvalidValue(): iterable '%s-%s-%s', $invalidSeparatorKey, $majorKey, - $minorKey, + $minorKey ); yield $key => [ @@ -128,7 +128,7 @@ public static function provideInvalidValue(): iterable [ $major, $minor, - ], + ] ), ]; } @@ -148,7 +148,7 @@ public static function provideInvalidValue(): iterable '%s-%s-%s', $majorKey, $minorKey, - $patchKey, + $patchKey ); yield $key => [ @@ -156,7 +156,7 @@ public static function provideInvalidValue(): iterable '%s.%s.%s', $major, $minor, - $patch, + $patch ), ]; }