From 415d38f4d192763d3326f0b70978c063e4ba2e60 Mon Sep 17 00:00:00 2001 From: Luke Kuzmish Date: Sun, 23 Apr 2023 08:30:29 -0400 Subject: [PATCH] style fixes --- src/Framework/TestCase.php | 3 +-- tests/end-to-end/regression/5342/Issue5342Test.php | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Framework/TestCase.php b/src/Framework/TestCase.php index 942aa3a7fc7..1b0435ee85e 100644 --- a/src/Framework/TestCase.php +++ b/src/Framework/TestCase.php @@ -1655,8 +1655,7 @@ private function stopOutputBuffering(): bool if ($bufferingLevel !== $this->outputBufferingLevel) { if ($bufferingLevel > $this->outputBufferingLevel) { $message = 'Test code or tested code did not close its own output buffers'; - } - else { + } else { $message = 'Test code or tested code closed output buffers other than its own'; } diff --git a/tests/end-to-end/regression/5342/Issue5342Test.php b/tests/end-to-end/regression/5342/Issue5342Test.php index ccc382252d8..d2c9a763ac2 100644 --- a/tests/end-to-end/regression/5342/Issue5342Test.php +++ b/tests/end-to-end/regression/5342/Issue5342Test.php @@ -9,7 +9,7 @@ */ namespace PHPUnit\TestFixture; -use function ob_start; +use function ob_end_clean; use PHPUnit\Framework\TestCase; class Issue5342Test extends TestCase