Added filter class for tags
This commit is contained in:
@@ -202,4 +202,16 @@ class LexerTest extends Base
|
||||
|
||||
$this->assertSame($expected, $lexer->tokenize('६Δↈ五一'));
|
||||
}
|
||||
|
||||
public function testTokenizeWithMultipleValues()
|
||||
{
|
||||
$lexer = new Lexer();
|
||||
$lexer->addToken("/^(tag:)/", 'T_TAG');
|
||||
|
||||
$expected = array(
|
||||
'T_TAG' => array('tag 1', 'tag2'),
|
||||
);
|
||||
|
||||
$this->assertSame($expected, $lexer->tokenize('tag:"tag 1" tag:tag2'));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user