Ejemplo n.º 1
0
 public function testTokenize()
 {
     $this->eq(s::tokenize('xabcxyabc', 'abc'), array('x', 'xy'));
     $this->eq(s::tokenize('abcabc', 'abc'), array());
     $this->eq(s::tokenize('', 'abc'), array());
     $this->eq(s::tokenize('', ''), array());
 }
Ejemplo n.º 2
0
 public function tokenize($chars)
 {
     return new XArray(s::tokenize($this->value, self::unwrap($chars)));
 }