From e0d50f0b8f72fe7bc240ed4a2611a72d106161ff Mon Sep 17 00:00:00 2001 From: vlakoff Date: Wed, 7 Jan 2015 01:10:30 +0100 Subject: [PATCH] Unit tests for no-break space in collapseWhitespace() and isBlank() --- tests/CommonTest.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/CommonTest.php b/tests/CommonTest.php index f20f5cc..4852ae1 100644 --- a/tests/CommonTest.php +++ b/tests/CommonTest.php @@ -172,6 +172,7 @@ abstract class CommonTest extends PHPUnit_Framework_TestCase array('test string', 'test string'), array('Ο συγγραφέας', ' Ο συγγραφέας '), array('123', ' 123 '), + array('', ' ', 'UTF-8'), // no-break space array('1 2 3', '  1  2  3  ', 'UTF-8'), // ideographic spaces array('', '   ', 'UTF-8'), // thin space and space array('', ' '), @@ -822,6 +823,7 @@ abstract class CommonTest extends PHPUnit_Framework_TestCase array(false, "\n\t ' \v\f"), array(false, "\n\t 2 \v\f"), array(true, '', 'UTF-8'), + array(true, ' ', 'UTF-8'), // no-break space array(true, '   ', 'UTF-8'), // thin space array(true, '  ', 'UTF-8'), // ideographic spaces array(false, ' z', 'UTF-8'),