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 {