Пример #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)));
 }