From 2b30e683ecf68a326c5ef8c93c14ddd10c630d38 Mon Sep 17 00:00:00 2001 From: GlazerMann Date: Tue, 23 Jan 2024 08:33:09 -0600 Subject: [PATCH] Update expandFnsTest.php --- tests/phpunit/expandFnsTest.php | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/tests/phpunit/expandFnsTest.php b/tests/phpunit/expandFnsTest.php index 0496421364..bee759dd8a 100644 --- a/tests/phpunit/expandFnsTest.php +++ b/tests/phpunit/expandFnsTest.php @@ -375,7 +375,11 @@ public function testHostIsGoneDOI() : void { $changed = FALSE; $should = "\n"; $nulls = ""; + $both = "": foreach (NULL_DOI_LIST as $doi) { + if (in_array($doi, NULL_DOI_BUT_GOOD)) { + $both = $both . " In Both: " . $doi . " "; + } $works = doi_works($doi); if ($works === TRUE) { $changed = TRUE; @@ -396,8 +400,14 @@ public function testHostIsGoneDOI() : void { echo "\n\n" . $nulls . "\n\n"; $this->flush(); } - $this->assertFalse($changed); + if ($both !== "") { + $this->flush(); + echo "\n\n" . $both . "\n\n"; + $this->flush(); + } $this->assertSame("", $nulls); + $this->assertSame("", $both); + $this->assertFalse($changed); } public function testBankruptDOICompany() : void {