Skip to content

Commit

Permalink
Update expandFnsTest.php
Browse files Browse the repository at this point in the history
  • Loading branch information
GlazerMann authored Jan 23, 2024
1 parent 115913b commit 2b30e68
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion tests/phpunit/expandFnsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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 {
Expand Down

0 comments on commit 2b30e68

Please sign in to comment.