示例#1
0
 public function test_escapeChars__Case_wildchar_inside()
 {
     $roman = 'inuit';
     $syll = Syllabics::latinAlphabetToUnicode($roman, '0');
     $query_syll = $syll . '\\S*?' . $syll;
     $escaped = Grepper::escapeChars($query_syll);
     $expected = '\\x{e1}\\x{90}\\x{83}\\x{e1}\\x{93}\\x{84}\\x{e1}\\x{90}\\x{83}\\x{e1}\\x{91}\\x{a6}\\S*?\\x{e1}\\x{90}\\x{83}\\x{e1}\\x{93}\\x{84}\\x{e1}\\x{90}\\x{83}\\x{e1}\\x{91}\\x{a6}';
     $this->assertEquals($expected, $escaped, "The escaping has failed.");
 }