From dabf848a104d7e05025e1811e2b57c84e80f2632 Mon Sep 17 00:00:00 2001 From: GlazerMann Date: Wed, 31 Jan 2024 12:30:00 -0600 Subject: [PATCH] do in one big string --- tests/phpunit/expandFnsTest.php | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/tests/phpunit/expandFnsTest.php b/tests/phpunit/expandFnsTest.php index 834ca1a9f6..a54bcbf7b6 100644 --- a/tests/phpunit/expandFnsTest.php +++ b/tests/phpunit/expandFnsTest.php @@ -404,21 +404,19 @@ public function testHostIsGoneDOI() : void { foreach (NULL_DOI_ANNOYING as $doi) { $this->assertTrue(in_array($doi, NULL_DOI_LIST)); } + $echo_me = ""; if ($changed) { - $this->flush(); - echo "\n\n" . $should . "\n\n"; - $this->flush(); + $echo_me = $echo_me . "\n\n" . $should . "\n\n"; } if ($nulls !== "") { - $this->flush(); - echo "\n\n" . $nulls . "\n\n"; - $this->flush(); + $echo_me = $echo_me . "\n\n" . $nulls . "\n\n"; } if ($both !== "") { - $this->flush(); - echo "\n\n" . $both . "\n\n"; - $this->flush(); + $echo_me = $echo_me . "\n\n" . $both . "\n\n"; } + $this->flush(); + echo $echo_me; // do in one big string + $this->flush(); $this->assertSame("", $nulls); $this->assertSame("", $both); $this->assertFalse($changed);