From ff2af8951986c1192b82b0fe492528d3b758e11c Mon Sep 17 00:00:00 2001 From: Daniel Persson Date: Mon, 7 Sep 2015 22:14:36 +0200 Subject: [PATCH] Added tests for bug 70451 and 70452 --- ext/intl/tests/bug70451.phpt | 12 ++++++++++++ ext/intl/tests/bug70452.phpt | 21 +++++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 ext/intl/tests/bug70451.phpt create mode 100644 ext/intl/tests/bug70452.phpt diff --git a/ext/intl/tests/bug70451.phpt b/ext/intl/tests/bug70451.phpt new file mode 100644 index 0000000000..75392c8dad --- /dev/null +++ b/ext/intl/tests/bug70451.phpt @@ -0,0 +1,12 @@ +--TEST-- +Bug #70451 IntlChar::charFromName() not consistent with C library or HHVM +--SKIPIF-- + +--FILE-- + +--EXPECT-- +int(9843) +NULL diff --git a/ext/intl/tests/bug70452.phpt b/ext/intl/tests/bug70452.phpt new file mode 100644 index 0000000000..f544c03ce3 --- /dev/null +++ b/ext/intl/tests/bug70452.phpt @@ -0,0 +1,21 @@ +--TEST-- +Bug #70452 string IntlChar::charName() can sometimes return bool(false) +--SKIPIF-- + +--FILE-- + +--EXPECT-- +string(22) "LATIN CAPITAL LETTER A" +string(22) "LATIN CAPITAL LETTER A" +string(0) "" +NULL \ No newline at end of file -- 2.50.1