Ejemplo n.º 1
0
 public function testWords()
 {
     $this->eq(s::words('these are words'), array('these', 'are', 'words'));
     $this->eq(s::words("  these   are\n\twords  \n"), array('these', 'are', 'words'));
     $this->eq(s::words(''), array());
     $this->eq(s::words("  \tabc  \t\n  ", "\n\t"), array("\tabc", "\t\n"));
 }
Ejemplo n.º 2
0
 public function words($chars = null)
 {
     return new XArray(s::words($this->value, self::unwrap($chars)));
 }