예제 #1
0
 public function testWrap()
 {
     $this->eq(s::wrap('abcdef', 2), "ab\ncd\nef");
     $this->eq(s::wrap('abcdef', 10), 'abcdef');
     $this->eq(s::wrap('abcdefg', 3, 'x'), 'abcxdefxg');
 }
예제 #2
0
 public function wrap($cols, $sep = "\n")
 {
     return new self(s::wrap($this->value, $cols, self::unwrap($sep)));
 }