Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions ext/intl/tests/spoofchecker_ubidi.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ $s = new Spoofchecker();
try {
$s->areBidiConfusable(Spoofchecker::RTL + 1, "a", "a");
} catch (ValueError $e) {
echo $e->getMessage() . PHP_EOL;
echo $e::class, ': ', $e->getMessage(), PHP_EOL;
}

/* "A1<aleph>" and "A<aleph>1" both display as "A1<aleph>" in a left to right
Expand Down Expand Up @@ -39,7 +39,7 @@ var_dump($s->areBidiConfusable(Spoofchecker::LTR, "Mark_", "_Mark", $errorCode))
var_dump($errorCode);
?>
--EXPECT--
Spoofchecker::areBidiConfusable(): Argument #1 ($direction) must be either Spoofchecker::LTR or Spoofchecker::RTL
ValueError: Spoofchecker::areBidiConfusable(): Argument #1 ($direction) must be either Spoofchecker::LTR or Spoofchecker::RTL
bool(true)
bool(false)
bool(false)
Expand Down
Loading