mirror of
https://github.com/danielstjules/Stringy.git
synced 2025-08-12 00:04:11 +02:00
Unit tests for no-break space in collapseWhitespace() and isBlank()
This commit is contained in:
@@ -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'),
|
||||
|
Reference in New Issue
Block a user