From ef33e80c72e7624df3c484b72fbdd94eae9fccb5 Mon Sep 17 00:00:00 2001 From: ShockedPlot7560 Date: Mon, 18 Dec 2023 16:59:41 +0100 Subject: [PATCH] fix CS --- src/framework/result/printer/TestResultsBag.php | 12 ++++++------ .../normal/tests/PromiseRejectionNotHandledTest.php | 4 +++- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/src/framework/result/printer/TestResultsBag.php b/src/framework/result/printer/TestResultsBag.php index 88ac287..e75e612 100644 --- a/src/framework/result/printer/TestResultsBag.php +++ b/src/framework/result/printer/TestResultsBag.php @@ -17,9 +17,9 @@ class TestResultsBag { /** @var SuccessTest[] $passedTests */ private array $passedTests = []; - /** - * @param TestResult[] $testResults - */ + /** + * @param TestResult[] $testResults + */ public function __construct( private array $testResults ) { @@ -98,9 +98,9 @@ public function getFatalRate() : float { return round(count($this->fatalErrors) / count($this->testResults) * 100, 2); } - /** - * @return TestResult[] - */ + /** + * @return TestResult[] + */ public function getAllErrors() : array { return array_merge($this->failedTests, $this->fatalErrors); } diff --git a/tests/pmmpunit/suitetest/normal/tests/PromiseRejectionNotHandledTest.php b/tests/pmmpunit/suitetest/normal/tests/PromiseRejectionNotHandledTest.php index 9268685..46962ad 100644 --- a/tests/pmmpunit/suitetest/normal/tests/PromiseRejectionNotHandledTest.php +++ b/tests/pmmpunit/suitetest/normal/tests/PromiseRejectionNotHandledTest.php @@ -8,7 +8,9 @@ use ShockedPlot7560\PmmpUnit\framework\TestCase; class PromiseRejectionNotHandledTest extends TestCase { - /** @phpstan-return PromiseInterface */ + /** + * @phpstan-return PromiseInterface + */ public function testPromiseRejectedToException() : PromiseInterface { $this->expectException(Exception::class);