Skip to content

Commit

Permalink
Update constantsTest.php
Browse files Browse the repository at this point in the history
  • Loading branch information
GlazerMann authored Dec 26, 2024
1 parent 1fc0a8d commit fa57f8e
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions tests/phpunit/constantsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -422,10 +422,37 @@ public function testNonJournalListIsNotBad() {
echo "\n\n CANONICAL_PUBLISHER_URLS damaged by NON_JOURNAL_WEBSITES: " . $journal . ' ' . $check . "\n\n";
$this->flush();
}
$check = $journal;
foreach (JOURNAL_ARCHIVES_SITES as $bad) {
$check = str_ireplace($bad, '', $check);
}
if ($check !== $journal) {
$failed = true;
$this->flush();
echo "\n\n JOURNAL_ARCHIVES_SITES damaged by NON_JOURNAL_WEBSITES: " . $journal . ' ' . $check . "\n\n";
$this->flush();
}
}
foreach (NON_JOURNAL_WEBSITES as $journal) {
$journal = $journal . '/';
$check = $journal;
foreach (JOURNAL_ARCHIVES_SITES as $bad) {
$check = str_ireplace($bad, '', $check);
}
if ($check !== $journal) {
$failed = true;
$this->flush();
echo "\n\n NON_JOURNAL_WEBSITES damaged by JOURNAL_ARCHIVES_SITES: " . $journal . ' ' . $check . "\n\n";
$this->flush();
}
}
$this->assertFalse($failed);
}



JOURNAL_ARCHIVES_SITES

public function testItalicsOrder(): void {
$in_order = true;
$spaces_at = 99999999;
Expand Down

0 comments on commit fa57f8e

Please sign in to comment.