summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-06-01 20:04:07 -0400
committerFrederic Guillot <fred@kanboard.net>2016-06-01 20:04:07 -0400
commitb0a31b168f41cf4b4e88b018747916992d9e5830 (patch)
tree00f7fdf88e097643d9d198aa128cde3ddbb2dd28 /tests
parent92aba95959633eee824e2d19e12adc7921d31431 (diff)
parent6af3b6dfdbd2be9de3a3d670b89f694e4fcffd69 (diff)
Merge pull-request #2280
Diffstat (limited to 'tests')
-rw-r--r--tests/units/Core/Filter/LexerTest.php24
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/units/Core/Filter/LexerTest.php b/tests/units/Core/Filter/LexerTest.php
index d405e9df..c72231c4 100644
--- a/tests/units/Core/Filter/LexerTest.php
+++ b/tests/units/Core/Filter/LexerTest.php
@@ -178,4 +178,28 @@ class LexerTest extends Base
$this->assertSame($expected, $lexer->tokenize('date:<=2016-01-01 something else'));
}
+
+ public function testTokenizeWithUtf8Letters()
+ {
+ $lexer = new Lexer();
+ $lexer->setDefaultToken('myDefaultToken');
+
+ $expected = array(
+ 'myDefaultToken' => array('àa éçùe'),
+ );
+
+ $this->assertSame($expected, $lexer->tokenize('àa éçùe'));
+ }
+
+ public function testTokenizeWithUtf8Numbers()
+ {
+ $lexer = new Lexer();
+ $lexer->setDefaultToken('myDefaultToken');
+
+ $expected = array(
+ 'myDefaultToken' => array('६Δↈ五一'),
+ );
+
+ $this->assertSame($expected, $lexer->tokenize('६Δↈ五一'));
+ }
}